/*
 * Copyright(c) 2017-2027 Actions (Zhuhai) Technology Co., Limited,
 *                            All Rights Reserved.
 *
 * Johnny           2022-5-23        create initial version
 */
#ifndef __CTRL_DBG_H
#define __CTRL_DBG_H

/* BT signal debug define */
#define BT_SIGNAL_IRQ_HIGH_EXIT                     0x00
#define BT_SIGNAL_IRQ_HIGH_ENTER                    0x01
#define BT_SIGNAL_IRQ_LOW_EXIT                      0x02
#define BT_SIGNAL_IRQ_LOW_ENTER                     0x03

#define BT_SIGNAL_CIS_SEQ_NO                        0x04

#define BT_SIGNAL_IRQ_INTR_TYPE                     0x05

#define BT_SIGNAL_SET_FREQ                          0x06

#define BT_SIGNAL_IRQ_MID_EXIT                      0x10
#define BT_SIGNAL_IRQ_MID_ENTER                     0x11

#define BT_SIGNAL_BT_MIC_RIGHT                      0x12

#define BT_SIGNAL_US_TIMER_END                      0x15
#define BT_SIGNAL_BT_TIMER_END                      0x21

#define BT_SIGNAL_L2CAP_RX_ADD                      0x20
#define BT_SIGNAL_L2CAP_RX_COMMIT                   0x22
#define BT_SIGNAL_LMP_RX_COMMIT                     0x23
#define BT_SIGNAL_LMP_RX_ADD                        0x25
#define BT_SIGNAL_SNOOP_L2CAP_COMMIT                0x26
#define BT_SIGNAL_SNOOP_LMP_COMMIT                  0x27
#define BT_SIGNAL_DV_RX_COMMIT                      0x2F

#define BT_SIGNAL_SCH_SIGN_ENTER                    0x30
#define BT_SIGNAL_SCH_SIGN_RESUME                   0x31
#define BT_SIGNAL_SCH_TERM_ENTER                    0x32
#define BT_SIGNAL_SCH_TERM_CURR                     0x33
#define BT_SIGNAL_SCH_TERM_CUR_RESUME               0x34
#define BT_SIGNAL_SCH_TERM_PREPARE_RESUME           0x35
#define BT_SIGNAL_SCH_SW_LOCK                       0x36
#define BT_SIGNAL_SCH_SW_QUIT_CUR                   0x37
#define BT_SIGNAL_SCH_CHANGE_PRIO_RESUME            0x38
#define BT_SIGNAL_SCH_SW_PRIO                       0x39

#define BT_SIGNAL_BT_ACL_HIGH_TO_LOW                0x3A
#define BT_SIGNAL_BT_ACL_HIGH_MORE                  0x3B
#define BT_SIGNAL_BT_ACL_MASTER_FINI                0x3C
#define BT_SIGNAL_BT_ACL_SW_OTHER_DEV               0x3E
#define BT_SIGNAL_BT_ACL_REQ_HIGH                   0x3F

#define BT_SIGNAL_RX_ACL_PKT_IN_ESCO                0x40
#define BT_SIGNAL_BT_ACL_WAIT_PKT_FAIL              0x41
#define BT_SIGNAL_TWS_SWITCH_IN_SNIFF               0x42
#define BT_SIGNAL_SCO_TXDATA_PRE                    0x44
#define BT_SIGNAL_ESCO_RETRAN_ENTER                 0x45
#define BT_SIGNAL_BT_ACL_RESUME_NEW                 0x46
#define BT_SIGNAL_BT_ACL_RX_ABORT                   0x47
#define BT_SIGNAL_TWS_SWITCH_NEW                    0x48
#define BT_SIGNAL_TWS_SWITCH_CHANGE                 0x49
#define BT_SIGNAL_ESCO_STILL_ACTIVE_WARNING         0x4A
#define BT_SIGNAL_TWS_EMERG_TO_HIGH_ESCO            0x4B
#define BT_SIGNAL_DUT_LB_TX_DATA                    0x4C
#define BT_SIGNAL_TWS_AP_TIMER                      0x4D

#define BT_SIGNAL_TWS_TRANS_FINI                    0x50
#define BT_SIGNAL_TWS_EMERG_TO_HIGH                 0x51
#define BT_SIGNAL_BT_RX_CRC_ERR                     0x54
#define BT_SIGNAL_ESCO_RX_CRC_ERR                   0x55

/* filename define */
#define BT_PRINT_FILENAME_CTRL_INTERFACE                  0x00
#define BT_PRINT_FILENAME_HCI                             0x01
#define BT_PRINT_FILENAME_MEM_UI                          0x02
#define BT_PRINT_FILENAME_BRM                             0x03
#define BT_PRINT_FILENAME_LC                              0x04
#define BT_PRINT_FILENAME_LM                              0x05
#define BT_PRINT_FILENAME_DM                              0x06
#define BT_PRINT_FILENAME_CSB                             0x07
#define BT_PRINT_FILENAME_LL                              0x08
#define BT_PRINT_FILENAME_CIS                             0x09
#define BT_PRINT_FILENAME_ADV                             0x0a
#define BT_PRINT_FILENAME_SCAN                            0x0b
#define BT_PRINT_FILENAME_LL_TEST                         0x0c
#define BT_PRINT_FILENAME_LL_CONN                         0x0d
#define BT_PRINT_FILENAME_LL_TWS                          0x0e
#define BT_PRINT_FILENAME_EXT_ADV                         0x0f
#define BT_PRINT_FILENAME_ISO                             0x10
#define BT_PRINT_FILENAME_MEM                             0x11
#define BT_PRINT_FILENAME_SCH                             0x12
#define BT_PRINT_FILENAME_TIMER                           0x13
#define BT_PRINT_FILENAME_PHY                             0x14
#define BT_PRINT_FILENAME_LIST                            0x16
#define BT_PRINT_FILENAME_IRQ                             0x17
#define BT_PRINT_FILENAME_ALGORITHM                       0x18
#define BT_PRINT_FILENAME_RF                              0x19

/* BT print debug define
 * 32 bits information description:
 * MSB 4 bits are debug inform level;
 * than 4 bits are hex data id
 * other 8 bits are module id;
 * LSB 16 bits are print magic.
 * eg: ^ID-MAGIC-data
 */
#define BT_PRINT_LVL_ERROR                          (0<<28)
#define BT_PRINT_LVL_WARNING                        (1<<28)
#define BT_PRINT_LVL_INFO                           (2<<28)
#define BT_PRINT_LVL_DEBUG                          (3<<28)
#define BT_PRINT_LVL_ASSERT                         (4<<28)

#define BT_PRINT_HEX_NULL                           (0<<24)
#define BT_PRINT_HEX_MISC                           (1<<24)
#define BT_PRINT_HEX_LL                             (2<<24)
#define BT_PRINT_HEX_LMP                            (3<<24)
#define BT_PRINT_HEX_HCI                            (4<<24)
#define BT_PRINT_HEX_H4                             (5<<24)

#define BT_PRINT_ID_RSV                             (0x00<<16)
#define BT_PRINT_ID_MISC                            (0x01<<16)
#define BT_PRINT_ID_HCI                             (0x02<<16)
#define BT_PRINT_ID_BRM                             (0x03<<16)
#define BT_PRINT_ID_LC                              (0x04<<16)
#define BT_PRINT_ID_LM                              (0x05<<16)
#define BT_PRINT_ID_DM                              (0x06<<16)
#define BT_PRINT_ID_CSB                             (0x07<<16)
#define BT_PRINT_ID_LL                              (0x08<<16)
#define BT_PRINT_ID_CIS                             (0x09<<16)
#define BT_PRINT_ID_ADV                             (0x0a<<16)
#define BT_PRINT_ID_SCAN                            (0x0b<<16)
#define BT_PRINT_ID_LL_TEST                         (0x0c<<16)
#define BT_PRINT_ID_LL_CONN                         (0x0d<<16)
#define BT_PRINT_ID_LL_TWS                          (0x0e<<16)
#define BT_PRINT_ID_EXT_ADV                         (0x0f<<16)
#define BT_PRINT_ID_ISO                             (0x10<<16)
#define BT_PRINT_ID_MEM                             (0x11<<16)
#define BT_PRINT_ID_SCH                             (0x12<<16)
#define BT_PRINT_ID_TIM                             (0x13<<16)
#define BT_PRINT_ID_PHY                             (0x14<<16)
#define BT_PRINT_ID_MSG                             (0x15<<16)
#define BT_PRINT_ID_CHN_SCAN                        (0x16<<16)

#define BT_PRINT_RSV_DBG(x)                         ((x) | BT_PRINT_ID_RSV | BT_PRINT_LVL_DEBUG)
#define BT_PRINT_RSV_ASSERT(x)                      ((x) | BT_PRINT_ID_RSV | BT_PRINT_LVL_ASSERT)
#define BT_PRINT_RSV_HEX(x)                         ((x) | BT_PRINT_ID_RSV | BT_PRINT_LVL_INFO | BT_PRINT_HEX_MISC)
#define BT_PRINT_ASSERT_FILE_NAME                   BT_PRINT_RSV_ASSERT(0x0000)
#define BT_PRINT_ASSERT_LINE_NUMBER                 BT_PRINT_RSV_ASSERT(0x0001)
#define BT_PRINT_HEX_PREFIX_FIX                     BT_PRINT_RSV_HEX(0x0002)

//MISC
#define BT_PRINT_MISC_ERR(x)                         ((x) | BT_PRINT_ID_MISC | BT_PRINT_LVL_ERROR)
#define BT_PRINT_MISC_WRN(x)                         ((x) | BT_PRINT_ID_MISC | BT_PRINT_LVL_WARNING)
#define BT_PRINT_MISC_INF(x)                         ((x) | BT_PRINT_ID_MISC | BT_PRINT_LVL_INFO)
#define BT_PRINT_MISC_DBG(x)                         ((x) | BT_PRINT_ID_MISC | BT_PRINT_LVL_DEBUG)
#define BT_PRINT_MISC_ASSERT(x)                      ((x) | BT_PRINT_ID_MISC | BT_PRINT_LVL_ASSERT)
#define BT_PRINT_IRQ_TW1                                                    BT_PRINT_MISC_DBG(0x0000)
#define BT_PRINT_IRQ_TWT1                                                   BT_PRINT_MISC_DBG(0x0001)
#define BT_PRINT_IRQ_TWT0                                                   BT_PRINT_MISC_DBG(0x0002)
#define BT_PRINT_ADC_RX_DUMP_DMA_REMAIN                                     BT_PRINT_MISC_DBG(0x0003)
#define BT_PRINT_TWS_IRQ_EN_IDX                                             BT_PRINT_MISC_DBG(0x0004)
#define BT_PRINT_TWS_IRQ_DIS_IDX                                            BT_PRINT_MISC_DBG(0x0005)
#define BT_PRINT_SET_KET_TMP_DCER                                           BT_PRINT_MISC_DBG(0x0006)
#define BT_PRINT_POLL_EMPTY                                                 BT_PRINT_MISC_ERR(0x0007)
#define BT_PRINT_H4_INIT_FAILED                                             BT_PRINT_MISC_ERR(0x0008)
#define BT_PRINT_H4_TYPE                                                    BT_PRINT_MISC_ERR(0x0009)
#define BT_PRINT_CTRL_UNINIT                                                BT_PRINT_MISC_ERR(0x000A)
#define BT_PRINT_H2C_HCI_RESET_ONGOING                                      BT_PRINT_MISC_ERR(0x000B)
#define BT_PRINT_UNKNOWN_HCI_TYPE                                           BT_PRINT_MISC_ERR(0x000C)
#define BT_PRINT_CLK_OVERFLOW                                               BT_PRINT_MISC_ERR(0x000D)
#define BT_PRINT_PASS_CIS_BTCLK                                             BT_PRINT_MISC_ERR(0x000E)
#define BT_PRINT_PASS_CIS_CUR_CLK                                           BT_PRINT_MISC_ERR(0x000F)
#define BT_PRINT_PASS_CIS_HANDLE                                            BT_PRINT_MISC_ERR(0x0010)
#define BT_PRINT_PASS_ACL_BTCLK                                             BT_PRINT_MISC_ERR(0x0011)
#define BT_PRINT_PASS_ACL_CUR_CLK                                           BT_PRINT_MISC_ERR(0x0012)
#define BT_PRINT_PASS_ACL_HANDLE                                            BT_PRINT_MISC_ERR(0x0013)
#define BT_PRINT_TWS_HDL                                                    BT_PRINT_MISC_ERR(0x0014)
#define BT_PRINT_FAILED_TO_RE_SEED_PRNG                                     BT_PRINT_MISC_WRN(0x0015)
#define BT_PRINT_FAILED_TO_INITIALIZE_PRNG                                  BT_PRINT_MISC_WRN(0x0016)
#define BT_PRINT_BB_IRQ_HIGH                                                BT_PRINT_MISC_INF(0x0017)
#define BT_PRINT_BB_IRQ_NORMAL                                              BT_PRINT_MISC_INF(0x0018)
#define BT_PRINT_BB_IRQ_LOW                                                 BT_PRINT_MISC_INF(0x0019)
#define BT_PRINT_CODE_REPLACE_ADDR                                          BT_PRINT_MISC_INF(0x001A)
#define BT_PRINT_CODE_REPLACE_LEN                                           BT_PRINT_MISC_INF(0x001B)
#define BT_PRINT_READ_BBRAM_ADDR                                            BT_PRINT_MISC_INF(0x001C)
#define BT_PRINT_READ_BBRAM_VAL                                             BT_PRINT_MISC_INF(0x001D)
#define BT_PRINT_SET_192_PUBKEY                                             BT_PRINT_MISC_INF(0x001E)
#define BT_PRINT_SET_256_PUBKEY                                             BT_PRINT_MISC_INF(0x001F)
#define BT_PRINT_6_DIGITS0                                                  BT_PRINT_MISC_INF(0x0020)
#define BT_PRINT_6_DIGITS1                                                  BT_PRINT_MISC_INF(0x0021)
#define BT_PRINT_EVT_RELEASE                                                BT_PRINT_MISC_DBG(0x0022)
#define BT_PRINT_ADJUST_LINK_TIME_IDX                                       BT_PRINT_MISC_DBG(0x0023)
#define BT_PRINT_ADJUST_LINK_TIME_VAL                                       BT_PRINT_MISC_DBG(0x0024)
#define BT_PRINT_SET_USER_DATA_RX_FLOW_IDX                                  BT_PRINT_MISC_DBG(0x0025)
#define BT_PRINT_SET_USER_DATA_RX_FLOW_VAL                                  BT_PRINT_MISC_DBG(0x0026)
#define BT_PRINT_FREE_BIT_POOL_REPEAT_POLL                                  BT_PRINT_MISC_ASSERT(0x0027)
#define BT_PRINT_FREE_BIT_POOL_REPEAT_BIT                                   BT_PRINT_MISC_ASSERT(0x0028)
#define BT_PRINT_HEX_ALLOC_BUF_FAIL_MAGIC_NUN                               BT_PRINT_MISC_WRN(0x0029)
#define BT_PRINT_BUFFER_NOT_ENOUGH                                          BT_PRINT_MISC_ERR(0x002A)
#define BT_PRINT_UPPER_SET_MAILBOX                                          BT_PRINT_MISC_INF(0x002B)

//HCI
#define BT_PRINT_HCI_ERR(x)                         ((x) | BT_PRINT_ID_HCI | BT_PRINT_LVL_ERROR)
#define BT_PRINT_HCI_WRN(x)                         ((x) | BT_PRINT_ID_HCI | BT_PRINT_LVL_WARNING)
#define BT_PRINT_HCI_INF(x)                         ((x) | BT_PRINT_ID_HCI | BT_PRINT_LVL_INFO)
#define BT_PRINT_HCI_DBG(x)                         ((x) | BT_PRINT_ID_HCI | BT_PRINT_LVL_DEBUG)
#define BT_PRINT_HCI_H4_HEX(x)                      ((x) | BT_PRINT_ID_HCI | BT_PRINT_LVL_INFO | BT_PRINT_HEX_H4)
#define BT_PRINT_HCI_TXRX_HEX(x)                    ((x) | BT_PRINT_ID_HCI | BT_PRINT_LVL_INFO | BT_PRINT_HEX_HCI)
#define BT_PRINT_RX_DATA_BIG_THAN_50MS_IDX                                  BT_PRINT_HCI_DBG(0x0000)
#define BT_PRINT_RX_DATA_BIG_THAN_50MS_LEN                                  BT_PRINT_HCI_DBG(0x0001)
#define BT_PRINT_RX_DATA_BIG_THAN_50MS_TIME                                 BT_PRINT_HCI_DBG(0x0002)
#define BT_PRINT_CMD_ERR_OPCODE                                             BT_PRINT_HCI_ERR(0x0003)
#define BT_PRINT_CMD_ERR_REASON                                             BT_PRINT_HCI_ERR(0x0004)
#define BT_PRINT_CMD_COMPLETE_ERR_OPCODE                                    BT_PRINT_HCI_ERR(0x0005)
#define BT_PRINT_CMD_COMPLETE_ERR_REASON                                    BT_PRINT_HCI_ERR(0x0006)
#define BT_PRINT_ACL_BC_FLAG_ERR                                            BT_PRINT_HCI_ERR(0x0007)
#define BT_PRINT_MASK_SUB_EVT                                               BT_PRINT_HCI_WRN(0x0008)
#define BT_PRINT_MASK_EVT                                                   BT_PRINT_HCI_WRN(0x0009)
#define BT_PRINT_HCI_RESET                                                  BT_PRINT_HCI_DBG(0x000A)
#define BT_PRINT_LL_CLK_CALC_BTCLK                                          BT_PRINT_HCI_DBG(0x000B)
#define BT_PRINT_LL_CLK_CALC_BITCNT                                         BT_PRINT_HCI_DBG(0x000C)
#define BT_PRINT_H4_DRIVER_CMD                                              BT_PRINT_HCI_H4_HEX(0x000D)
#define BT_PRINT_H4_DRIVER_ACL                                              BT_PRINT_HCI_H4_HEX(0x000E)
#define BT_PRINT_H4_DRIVER_SYNC                                             BT_PRINT_HCI_H4_HEX(0x000F)
#define BT_PRINT_H4_DRIVER_EVT                                              BT_PRINT_HCI_H4_HEX(0x0010)
#define BT_PRINT_HCI_TX_CMD                                                 BT_PRINT_HCI_TXRX_HEX(0x0011)
#define BT_PRINT_HCI_RX_CMD                                                 BT_PRINT_HCI_TXRX_HEX(0x0012)

//BRM
#define BT_PRINT_BRM_ERR(x)                         ((x) | BT_PRINT_ID_BRM | BT_PRINT_LVL_ERROR)
#define BT_PRINT_BRM_WRN(x)                         ((x) | BT_PRINT_ID_BRM | BT_PRINT_LVL_WARNING)
#define BT_PRINT_BRM_INF(x)                         ((x) | BT_PRINT_ID_BRM | BT_PRINT_LVL_INFO)
#define BT_PRINT_BRM_DBG(x)                         ((x) | BT_PRINT_ID_BRM | BT_PRINT_LVL_DEBUG)
#define BT_PRINT_BRM_ASSERT(x)                      ((x) | BT_PRINT_ID_BRM | BT_PRINT_LVL_ASSERT)
#define BT_PRINT_TWS_GOOD_SNOOP_DISABLE                                     BT_PRINT_BRM_DBG(0x0000)
#define BT_PRINT_SLP_IDX                                                    BT_PRINT_BRM_ERR(0x0001)
#define BT_PRINT_NO_LTADDR                                                  BT_PRINT_BRM_ERR(0x0002)
#define BT_PRINT_FREE_LT                                                    BT_PRINT_BRM_ERR(0x0003)
#define BT_PRINT_OUT_REL                                                    BT_PRINT_BRM_ERR(0x0004)
#define BT_PRINT_IN_ACL_REL                                                 BT_PRINT_BRM_ERR(0x0005)
#define BT_PRINT_IN_SCO_REL                                                 BT_PRINT_BRM_ERR(0x0006)
#define BT_PRINT_DL_IN                                                      BT_PRINT_BRM_ERR(0x0007)
#define BT_PRINT_STOP_TXRX                                                  BT_PRINT_BRM_ERR(0x0008)
#define BT_PRINT_DL_M_ABORT                                                 BT_PRINT_BRM_ERR(0x0009)
#define BT_PRINT_DL_S_ABORT                                                 BT_PRINT_BRM_ERR(0x000A)
#define BT_PRINT_SL_IDX                                                     BT_PRINT_BRM_ERR(0x000B)
#define BT_PRINT_SL_AM_ABORT                                                BT_PRINT_BRM_ERR(0x000C)
#define BT_PRINT_DL_IDX                                                     BT_PRINT_BRM_ERR(0x000D)
#define BT_PRINT_INQ_N                                                      BT_PRINT_BRM_ERR(0x000E)
#define BT_PRINT_INQ_DEF                                                    BT_PRINT_BRM_ERR(0x000F)
#define BT_PRINT_INQ_RN                                                     BT_PRINT_BRM_ERR(0x0010)
#define BT_PRINT_PAGE_N                                                     BT_PRINT_BRM_ERR(0x0011)
#define BT_PRINT_PAGE_ABORT                                                 BT_PRINT_BRM_ERR(0x0012)
#define BT_PRINT_PAGE_DEF                                                   BT_PRINT_BRM_ERR(0x0013)
#define BT_PRINT_PAGE_RN                                                    BT_PRINT_BRM_ERR(0x0014)
#define BT_PRINT_PS_N                                                       BT_PRINT_BRM_ERR(0x0015)
#define BT_PRINT_PS_DEF                                                     BT_PRINT_BRM_ERR(0x0016)
#define BT_PRINT_PS_RN                                                      BT_PRINT_BRM_ERR(0x0017)
#define BT_PRINT_IS_N                                                       BT_PRINT_BRM_ERR(0x0018)
#define BT_PRINT_IS_DEF                                                     BT_PRINT_BRM_ERR(0x0019)
#define BT_PRINT_IS_RN                                                      BT_PRINT_BRM_ERR(0x001A)
#define BT_PRINT_DL_PKA                                                     BT_PRINT_BRM_ERR(0x001B)
#define BT_PRINT_DL_PKD                                                     BT_PRINT_BRM_ERR(0x001C)
#define BT_PRINT_DL_TIM2                                                    BT_PRINT_BRM_ERR(0x001D)
#define BT_PRINT_DLP_PKA                                                    BT_PRINT_BRM_ERR(0x001E)
#define BT_PRINT_DL_SW_PKA                                                  BT_PRINT_BRM_ERR(0x001F)
#define BT_PRINT_DL_DEF                                                     BT_PRINT_BRM_ERR(0x0020)
#define BT_PRINT_CSS                                                        BT_PRINT_BRM_ERR(0x0021)
#define BT_PRINT_MSS_N                                                      BT_PRINT_BRM_ERR(0x0022)
#define BT_PRINT_MSS_DEF                                                    BT_PRINT_BRM_ERR(0x0023)
#define BT_PRINT_SNIFF_DEF                                                  BT_PRINT_BRM_ERR(0x0024)
#define BT_PRINT_SL_TIM_PKA                                                 BT_PRINT_BRM_ERR(0x0025)
#define BT_PRINT_SL_PKA                                                     BT_PRINT_BRM_ERR(0x0026)
#define BT_PRINT_SL_SR                                                      BT_PRINT_BRM_ERR(0x0027)
#define BT_PRINT_SL_ABORT                                                   BT_PRINT_BRM_ERR(0x0028)
#define BT_PRINT_SL_PKD                                                     BT_PRINT_BRM_ERR(0x0029)
#define BT_PRINT_SLP_PKA                                                    BT_PRINT_BRM_ERR(0x002A)
#define BT_PRINT_SL_DEF                                                     BT_PRINT_BRM_ERR(0x002B)
#define BT_PRINT_SWITCH_INSTANT_PASSED                                      BT_PRINT_BRM_ERR(0x002C)
#define BT_PRINT_SL_REL_N                                                   BT_PRINT_BRM_ERR(0x002D)
#define BT_PRINT_SYNC_IN                                                    BT_PRINT_BRM_ERR(0x002E)
#define BT_PRINT_DESCO_CFT                                                  BT_PRINT_BRM_ERR(0x002F)
#define BT_PRINT_SL_FINI_N                                                  BT_PRINT_BRM_ERR(0x0030)
#define BT_PRINT_DSNIFF_CFT                                                 BT_PRINT_BRM_ERR(0x0031)
#define BT_PRINT_SNIFF_TRAN_N                                               BT_PRINT_BRM_ERR(0x0032)
#define BT_PRINT_SNIFF_FINI_N                                               BT_PRINT_BRM_ERR(0x0033)
#define BT_PRINT_TWS_C                                                      BT_PRINT_BRM_ERR(0x0034)
#define BT_PRINT_SP_SWITCH_AT_TOO_LARGE_L2CAP                               BT_PRINT_BRM_ERR(0x0035)
#define BT_PRINT_TWS_LINK_CONFLICT                                          BT_PRINT_BRM_ERR(0x0036)
#define BT_PRINT_MULT_MSS                                                   BT_PRINT_BRM_WRN(0x0037)
#define BT_PRINT_DL_OUT                                                     BT_PRINT_BRM_WRN(0x0038)
#define BT_PRINT_SR_LATE                                                    BT_PRINT_BRM_WRN(0x0039)
#define BT_PRINT_MSS_RESUME_IRQ                                             BT_PRINT_BRM_WRN(0x003A)
#define BT_PRINT_SYNC_START_LAST_NO_FINISH                                  BT_PRINT_BRM_WRN(0x003B)
#define BT_PRINT_SNIFF_ATTEMPT_FAIL_IDX                                     BT_PRINT_BRM_WRN(0x003C)
#define BT_PRINT_SNIFF_ATTEMPT_FAIL_AP_CLK                                  BT_PRINT_BRM_WRN(0x003D)
#define BT_PRINT_TIM0_CF                                                    BT_PRINT_BRM_WRN(0x003E)
#define BT_PRINT_SYNC_OUT                                                   BT_PRINT_BRM_WRN(0x003F)
#define BT_PRINT_SNIFF_RELED                                                BT_PRINT_BRM_WRN(0x0040)
#define BT_PRINT_SNIFF_INIT_TOO_CLOSE_CUR_CLK                               BT_PRINT_BRM_WRN(0x0041)
#define BT_PRINT_SNIFF_INIT_TOO_CLOSE_AP_CLK                                BT_PRINT_BRM_WRN(0x0042)
#define BT_PRINT_L2CAP_RX_ACL_FULL                                          BT_PRINT_BRM_WRN(0x0043)
#define BT_PRINT_SCO_RX_FULL                                                BT_PRINT_BRM_WRN(0x0044)
#define BT_PRINT_SCO_RX_FULL                                                BT_PRINT_BRM_WRN(0x0044)
#define BT_PRINT_TWS_EXIST                                                  BT_PRINT_BRM_WRN(0x0045)
#define BT_PRINT_PAGE_1ST_ID                                                BT_PRINT_BRM_INF(0x0046)
#define BT_PRINT_PAGE_2ND_ID                                                BT_PRINT_BRM_INF(0x0047)
#define BT_PRINT_PAGE_SLAVE_RSP                                             BT_PRINT_BRM_INF(0x0048)
#define BT_PRINT_PAUSE_DL                                                   BT_PRINT_BRM_INF(0x0049)
#define BT_PRINT_SAF4_IDX                                                   BT_PRINT_BRM_INF(0x004A)
#define BT_PRINT_SAF1_IDX                                                   BT_PRINT_BRM_INF(0x004B)
#define BT_PRINT_SAF2_IDX                                                   BT_PRINT_BRM_INF(0x004C)
#define BT_PRINT_SAF3_IDX                                                   BT_PRINT_BRM_INF(0x004D)
#define BT_PRINT_INQ_FHS_FO_REG                                             BT_PRINT_BRM_INF(0x004E)
#define BT_PRINT_INQ_EIR                                                    BT_PRINT_BRM_INF(0x004F)
#define BT_PRINT_INQ_IRQ                                                    BT_PRINT_BRM_INF(0x0050)
#define BT_PRINT_PS_FHS                                                     BT_PRINT_BRM_INF(0x0051)
#define BT_PRINT_PS_POLL                                                    BT_PRINT_BRM_INF(0x0052)
#define BT_PRINT_IS_FHS                                                     BT_PRINT_BRM_INF(0x0053)
#define BT_PRINT_IS_EIR                                                     BT_PRINT_BRM_INF(0x0054)
#define BT_PRINT_CONN_RESUME_ACL_RX_HDR                                     BT_PRINT_BRM_INF(0x0055)
#define BT_PRINT_PAGE_FALSE_ALARM                                           BT_PRINT_BRM_DBG(0x0056)
#define BT_PRINT_PAGESCAN_ACL_LINK_CONFILCT                                 BT_PRINT_BRM_DBG(0x0057)
#define BT_PRINT_PAGESCAN_FALSE_ALARM                                       BT_PRINT_BRM_DBG(0x0058)
#define BT_PRINT_CONN_LINK_TIMEOUT_LOST_TIME                                BT_PRINT_BRM_DBG(0x0059)
#define BT_PRINT_CONN_LINK_TIMEOUT_CUR_TIME                                 BT_PRINT_BRM_DBG(0x005A)
#define BT_PRINT_TWS_LINK_DISC_IDX                                          BT_PRINT_BRM_DBG(0x005B)
#define BT_PRINT_TWS_NODATA                                                 BT_PRINT_BRM_DBG(0x005C)
#define BT_PRINT_TWS_PREPARE_TX_RETANSMIT                                   BT_PRINT_BRM_DBG(0x005D)
#define BT_PRINT_ADD_CONN_HIGH_TIME_IDX                                     BT_PRINT_BRM_DBG(0x005E)
#define BT_PRINT_ADD_CONN_HIGH_TIME_CUR_CLK                                 BT_PRINT_BRM_DBG(0x005F)
#define BT_PRINT_TRX_DUTY_10S_TX_US                                         BT_PRINT_BRM_DBG(0x0060)
#define BT_PRINT_TRX_DUTY_10S_RX_US                                         BT_PRINT_BRM_DBG(0x0061)
#define BT_PRINT_SP_PKT_TIMEOUT                                             BT_PRINT_BRM_DBG(0x0062)
#define BT_PRINT_DL_SP_PKD                                                  BT_PRINT_BRM_DBG(0x0063)
#define BT_PRINT_DL_SW_RX                                                   BT_PRINT_BRM_DBG(0x0064)
#define BT_PRINT_DL_AMS3                                                    BT_PRINT_BRM_DBG(0x0065)
#define BT_PRINT_DL_AMS5                                                    BT_PRINT_BRM_DBG(0x0066)
#define BT_PRINT_MSS_FINI_RR3                                               BT_PRINT_BRM_DBG(0x0067)
#define BT_PRINT_MSS_FINI_RR4                                               BT_PRINT_BRM_DBG(0x0068)
#define BT_PRINT_MSS_RX_FHS                                                 BT_PRINT_BRM_DBG(0x0069)
#define BT_PRINT_MSS_TX_ID                                                  BT_PRINT_BRM_DBG(0x006A)
#define BT_PRINT_MSS_RX_POLL                                                BT_PRINT_BRM_DBG(0x006B)
#define BT_PRINT_MSS_RX_ID                                                  BT_PRINT_BRM_DBG(0x006C)
#define BT_PRINT_MSS_RX_NULL                                                BT_PRINT_BRM_DBG(0x006D)
#define BT_PRINT_SYNC_CHECK_SKIP_RETRAN_REQ                                 BT_PRINT_BRM_DBG(0x006E)
#define BT_PRINT_SYNC_START_RESUME_IGNORE_LINK                              BT_PRINT_BRM_DBG(0x006F)
#define BT_PRINT_SL_SP_PKD                                                  BT_PRINT_BRM_DBG(0x0070)
#define BT_PRINT_DELETE_SNIFF_LINK                                          BT_PRINT_BRM_DBG(0x0071)
#define BT_PRINT_TWS_SNIFF_SW_REQ_AP                                        BT_PRINT_BRM_DBG(0x0072)
#define BT_PRINT_TWS_SNIFF_SW_REQ_OFF                                       BT_PRINT_BRM_DBG(0x0073)
#define BT_PRINT_SNIFF_UPDATE                                               BT_PRINT_BRM_DBG(0x0074)
#define BT_PRINT_PAGESCAN_ID_PKT_RSSI                                       BT_PRINT_BRM_DBG(0x0075)
#define BT_PRINT_PAGESCAN_ID_BG_RSSI                                        BT_PRINT_BRM_DBG(0x0076)
#define BT_PRINT_INQSCAN_FALSE_ALARM                                        BT_PRINT_BRM_DBG(0x0077)
#define BT_PRINT_CHN_SCAN_STOP                                              BT_PRINT_BRM_DBG(0x0078)
#define BT_PRINT_CHN_SCAN_INIT                                              BT_PRINT_BRM_DBG(0x0079)
#define BT_PRINT_MSS_TX_FHS                                                 BT_PRINT_BRM_DBG(0x007A)
#define BT_PRINT_MSS_TX_POLL                                                BT_PRINT_BRM_DBG(0x007B)
#define BT_PRINT_MSS_SWITCH_CLK                                             BT_PRINT_BRM_DBG(0x007C)
#define BT_PRINT_ALLOC_SL                                                   BT_PRINT_BRM_DBG(0x007D)
#define BT_PRINT_DEL_SCO                                                    BT_PRINT_BRM_DBG(0x007E)
#define BT_PRINT_RELEASE_SYNC                                               BT_PRINT_BRM_DBG(0x007F)
#define BT_PRINT_CALC_FIRST_ANCHOR_POINT_CUR_CLK                            BT_PRINT_BRM_DBG(0x0080)
#define BT_PRINT_CHECK_DESCO_CUR_BTCLK                                      BT_PRINT_BRM_DBG(0x0081)
#define BT_PRINT_CHECK_DESCO_CUR_BITCNT                                     BT_PRINT_BRM_DBG(0x0082)
#define BT_PRINT_CHECK_DESCO_OTHER_SL_BTCLK                                 BT_PRINT_BRM_DBG(0x0083)
#define BT_PRINT_CHECK_DESCO_OTHER_SL_BITCNT                                BT_PRINT_BRM_DBG(0x0084)
#define BT_PRINT_CHECK_DESCO_CHANGE_BTCLK                                   BT_PRINT_BRM_DBG(0x0085)
#define BT_PRINT_CHECK_DESCO_CHANGE_BITCNT                                  BT_PRINT_BRM_DBG(0x0086)
#define BT_PRINT_SL_FINISH                                                  BT_PRINT_BRM_DBG(0x0087)
#define BT_PRINT_SL_FINISH_IGNORE_2ND                                       BT_PRINT_BRM_DBG(0x0088)
#define BT_PRINT_SL_CHANGE_PKT                                              BT_PRINT_BRM_DBG(0x0089)
#define BT_PRINT_ALLOC_SNIFF                                                BT_PRINT_BRM_DBG(0x008A)
#define BT_PRINT_RELEASE_SNIFF                                              BT_PRINT_BRM_DBG(0x008B)
#define BT_PRINT_SELECT_TSNIFF                                              BT_PRINT_BRM_DBG(0x008C)
#define BT_PRINT_CHECK_DSNIFF_CUR_BTCLK                                     BT_PRINT_BRM_DBG(0x008D)
#define BT_PRINT_CHECK_DSNIFF_CUR_TC_FLAG                                   BT_PRINT_BRM_DBG(0x008E)
#define BT_PRINT_CHECK_DSNIFF_CUR_TSNIFF                                    BT_PRINT_BRM_DBG(0x008F)
#define BT_PRINT_CHECK_DSNIFF_CUR_DSNIFF                                    BT_PRINT_BRM_DBG(0x0090)
#define BT_PRINT_CHECK_DSNIFF_OTHER_SNIFF_BTCLK                             BT_PRINT_BRM_DBG(0x0091)
#define BT_PRINT_CHECK_DSNIFF_CHANGE_BTCLK                                  BT_PRINT_BRM_DBG(0x0092)
#define BT_PRINT_CHECK_DSNIFF_CUR_TWS                                       BT_PRINT_BRM_DBG(0x0093)
#define BT_PRINT_SNIFF_SW_AP_BAK                                            BT_PRINT_BRM_DBG(0x0094)
#define BT_PRINT_SNIFF_SW_AP_OFF                                            BT_PRINT_BRM_DBG(0x0095)
#define BT_PRINT_SNIFF_TRANSICTION                                          BT_PRINT_BRM_DBG(0x0096)
#define BT_PRINT_SNIFF_FINISH                                               BT_PRINT_BRM_DBG(0x0097)
#define BT_PRINT_BRM_INIT_SYNC_HIGH                                         BT_PRINT_BRM_DBG(0x0098)
#define BT_PRINT_BRM_INIT_SYNC_LOW                                          BT_PRINT_BRM_DBG(0x0099)
#define BT_PRINT_TWS_AP_RESUME                                              BT_PRINT_BRM_DBG(0x009A)
#define BT_PRINT_TWS_AP_PAUSE                                               BT_PRINT_BRM_DBG(0x009B)
#define BT_PRINT_TWS_AP_CLOSE                                               BT_PRINT_BRM_DBG(0x009C)
#define BT_PRINT_TWS_UPDATE_AP_BUSY                                         BT_PRINT_BRM_DBG(0x009D)
#define BT_PRINT_FIRST_TWS_AP                                               BT_PRINT_BRM_DBG(0x009E)
#define BT_PRINT_TWS_UPDATE_AP_NEW_BTCLK                                    BT_PRINT_BRM_DBG(0x009F)
#define BT_PRINT_TWS_UPDATE_AP_NEW_IDX                                      BT_PRINT_BRM_DBG(0x00A0)
#define BT_PRINT_TWS_UPDATE_AP_OLD_BTCLK                                    BT_PRINT_BRM_DBG(0x00A1)
#define BT_PRINT_TWS_UPDATE_AP_OLD_IDX                                      BT_PRINT_BRM_DBG(0x00A2)
#define BT_PRINT_TWS_UPDATE_AP_NO_CHANGE                                    BT_PRINT_BRM_DBG(0x00A3)
#define BT_PRINT_TWS_UPDATE_AP_NO_CHANGE2                                   BT_PRINT_BRM_DBG(0x00A4)
#define BT_PRINT_TWS_SP_INFO_COMPLETE                                       BT_PRINT_BRM_DBG(0x00A5)
#define BT_PRINT_SYNC_SP_COMPLETE_IGNORE_SL                                 BT_PRINT_BRM_DBG(0x00A6)
#define BT_PRINT_SET_SP_INACTIVE_IGNORE_SL                                  BT_PRINT_BRM_DBG(0x00A7)
#define BT_PRINT_CREATE_ACL_SP_LINK                                         BT_PRINT_BRM_DBG(0x00A8)
#define BT_PRINT_CREATE_ACL_SP_INTRASLOT_OFF                                BT_PRINT_BRM_DBG(0x00A9)
#define BT_PRINT_CREATE_ACL_SP_CLKOFF                                       BT_PRINT_BRM_DBG(0x00AA)
#define BT_PRINT_CREATE_ACL_SP_TWS_INTRASLOT_OFF                            BT_PRINT_BRM_DBG(0x00AB)
#define BT_PRINT_CREATE_ACL_SP_TWS_CLKOFF                                   BT_PRINT_BRM_DBG(0x00AC)
#define BT_PRINT_RECOVER_TWS_RR1                                            BT_PRINT_BRM_DBG(0x00AD)
#define BT_PRINT_RECOVER_TWS_RR2                                            BT_PRINT_BRM_DBG(0x00AE)
#define BT_PRINT_CREATE_SYNC_SP_LINK                                        BT_PRINT_BRM_DBG(0x00AF)
#define BT_PRINT_CREATE_SYNC_SP_LINK_IGNORE                                 BT_PRINT_BRM_DBG(0x00B0)
#define BT_PRINT_RESUME_SP_AC_SL                                            BT_PRINT_BRM_DBG(0x00B1)
#define BT_PRINT_PAUSE_ACL_SP                                               BT_PRINT_BRM_DBG(0x00B2)
#define BT_PRINT_SET_SP_LINK_ACTIVE                                         BT_PRINT_BRM_DBG(0x00B3)
#define BT_PRINT_SP_SWITCH_START                                            BT_PRINT_BRM_DBG(0x00B4)
#define BT_PRINT_GET_ALL_LMP_OUT_PR1                                        BT_PRINT_BRM_DBG(0x00B5)
#define BT_PRINT_GET_ALL_LMP_OUT_CMD                                        BT_PRINT_BRM_DBG(0x00B6)
#define BT_PRINT_GET_ALL_L2CAP_OUT_PR2                                      BT_PRINT_BRM_DBG(0x00B7)
#define BT_PRINT_GET_ALL_L2CAP_OUT_DATA                                     BT_PRINT_BRM_DBG(0x00B8)
#define BT_PRINT_SET_ALL_LMP_OUT_LEN                                        BT_PRINT_BRM_DBG(0x00B9)
#define BT_PRINT_SET_PKT_RETRANS                                            BT_PRINT_BRM_DBG(0x00BA)
#define BT_PRINT_FREE_LT_POOL                                               BT_PRINT_BRM_ASSERT(0x00BB)
#define BT_PRINT_FREE_LT_LTADDR                                             BT_PRINT_BRM_ASSERT(0x00BC)
#define BT_PRINT_PAGE1ST_ID                                                 BT_PRINT_BRM_ASSERT(0x00BD)
#define BT_PRINT_PAGE2ND_PKA                                                BT_PRINT_BRM_ASSERT(0x00BE)
#define BT_PRINT_PAGE_FHS                                                   BT_PRINT_BRM_ASSERT(0x00BF)
#define BT_PRINT_PAGE2ND_ID_PKD                                             BT_PRINT_BRM_ASSERT(0x00C0)
#define BT_PRINT_PAGE_RESP_PKD                                              BT_PRINT_BRM_ASSERT(0x00C1)
#define BT_PRINT_PAGESCAN_W4ID_TIM                                          BT_PRINT_BRM_ASSERT(0x00C2)
#define BT_PRINT_PRE_ACL_TX                                                 BT_PRINT_BRM_ASSERT(0x00C3)
#define BT_PRINT_TX_PEND_LEN                                                BT_PRINT_BRM_ASSERT(0x00C4)
#define BT_PRINT_TX_DATA_LEN                                                BT_PRINT_BRM_ASSERT(0x00C5)
#define BT_PRINT_PAGE_NULL                                                  BT_PRINT_BRM_ASSERT(0x00C6)
#define BT_PRINT_PAGESCAN_NULL                                              BT_PRINT_BRM_ASSERT(0x00C7)
#define BT_PRINT_DEV_NOT_NULL                                               BT_PRINT_BRM_ASSERT(0x00C8)
#define BT_PRINT_MSS_NOT_NULL                                               BT_PRINT_BRM_ASSERT(0x00C9)
#define BT_PRINT_MSS_FHS                                                    BT_PRINT_BRM_ASSERT(0x00CA)
#define BT_PRINT_MSS_ID_PKA                                                 BT_PRINT_BRM_ASSERT(0x00CB)
#define BT_PRINT_MSS_POLL_PKD                                               BT_PRINT_BRM_ASSERT(0x00CC)
#define BT_PRINT_MSS_ID_PKD                                                 BT_PRINT_BRM_ASSERT(0x00CD)
#define BT_PRINT_MSS_NULL_PKD                                               BT_PRINT_BRM_ASSERT(0x00CE)
#define BT_PRINT_INQ_2ND_PKA                                                BT_PRINT_BRM_ASSERT(0x00CF)
#define BT_PRINT_INQ_W4EIR                                                  BT_PRINT_BRM_ASSERT(0x00D0)
#define BT_PRINT_INQ_RESUME1                                                BT_PRINT_BRM_ASSERT(0x00D1)
#define BT_PRINT_PAGE1ST_PKA                                                BT_PRINT_BRM_ASSERT(0x00D2)
#define BT_PRINT_PAGE_POLL_PKA                                              BT_PRINT_BRM_ASSERT(0x00D3)
#define BT_PRINT_PAGE_RESUME1                                               BT_PRINT_BRM_ASSERT(0x00D4)
#define BT_PRINT_PAGE_1ST_ID_PKA                                            BT_PRINT_BRM_ASSERT(0x00D5)
#define BT_PRINT_PAGESCAN_FHS_PKD                                           BT_PRINT_BRM_ASSERT(0x00D6)
#define BT_PRINT_PAGESCAN_2ND_ID_PKA                                        BT_PRINT_BRM_ASSERT(0x00D7)
#define BT_PRINT_PAGESCAN_POLL_PKD                                          BT_PRINT_BRM_ASSERT(0x00D8)
#define BT_PRINT_PAGESCAN_ANY_PKA                                           BT_PRINT_BRM_ASSERT(0x00D9)
#define BT_PRINT_PAGESCAN_RESUME1                                           BT_PRINT_BRM_ASSERT(0x00DA)
#define BT_PRINT_INQSCAN_W4ID_TIM                                           BT_PRINT_BRM_ASSERT(0x00DB)
#define BT_PRINT_INQSCAN_FHS_PKA                                            BT_PRINT_BRM_ASSERT(0x00DC)
#define BT_PRINT_INQSCAN_TIM2                                               BT_PRINT_BRM_ASSERT(0x00DD)
#define BT_PRINT_INQSCAN_EIR_PKA                                            BT_PRINT_BRM_ASSERT(0x00DE)
#define BT_PRINT_INQSCAN_RESUME1                                            BT_PRINT_BRM_ASSERT(0x00DF)
#define BT_PRINT_DEV_LINK_RESUME1                                           BT_PRINT_BRM_ASSERT(0x00E0)
#define BT_PRINT_MSS_SWITCH_TIM                                             BT_PRINT_BRM_ASSERT(0x00E1)
#define BT_PRINT_MSS_NULL_PKA                                               BT_PRINT_BRM_ASSERT(0x00E2)
#define BT_PRINT_MSS_FHS_PKA                                                BT_PRINT_BRM_ASSERT(0x00E3)
#define BT_PRINT_MSS_POLL_PKA                                               BT_PRINT_BRM_ASSERT(0x00E4)
#define BT_PRINT_MSS_RESUME_NULL                                            BT_PRINT_BRM_ASSERT(0x00E5)
#define BT_PRINT_MSS_RESUME1                                                BT_PRINT_BRM_ASSERT(0x00E6)
#define BT_PRINT_SNIFF_ATTEMPT_IRQ                                          BT_PRINT_BRM_ASSERT(0x00E7)
#define BT_PRINT_SNIFF_PKD_IRQ                                              BT_PRINT_BRM_ASSERT(0x00E8)
#define BT_PRINT_SNIFF_RESUME1                                              BT_PRINT_BRM_ASSERT(0x00E9)
#define BT_PRINT_SYNC_LINK_RESUM1                                           BT_PRINT_BRM_ASSERT(0x00EA)
#define BT_PRINT_INQURIRY_EXIST                                             BT_PRINT_BRM_ASSERT(0x00EC)
#define BT_PRINT_INQURIRY_ALLOC_FAIL                                        BT_PRINT_BRM_ASSERT(0x00ED)
#define BT_PRINT_PAGE_EXIST                                                 BT_PRINT_BRM_ASSERT(0x00EE)
#define BT_PRINT_PAGE_ALLOC_FAIL                                            BT_PRINT_BRM_ASSERT(0x00EF)
#define BT_PRINT_PAGESCAN_ALLOC_FAIL                                        BT_PRINT_BRM_ASSERT(0x00F0)
#define BT_PRINT_INQSCAN_ALLOC_FAIL                                         BT_PRINT_BRM_ASSERT(0x00F1)
#define BT_PRINT_FIND_LINK_BY_IDX_NULL                                      BT_PRINT_BRM_ASSERT(0x00F2)
#define BT_PRINT_FIND_LINK_BY_ADDR_NULL                                     BT_PRINT_BRM_ASSERT(0x00F3)
#define BT_PRINT_MSS_EXIST                                                  BT_PRINT_BRM_ASSERT(0x00F4)
#define BT_PRINT_MSS_ALLOC_FAIL                                             BT_PRINT_BRM_ASSERT(0x00F5)
#define BT_PRINT_SYNC_LINK_EXIST                                            BT_PRINT_BRM_ASSERT(0x00F6)
#define BT_PRINT_SYNC_LINK_ALLOC_FAIL                                       BT_PRINT_BRM_ASSERT(0x00F7)
#define BT_PRINT_FIND_SYNC_LINK_BY_IDX                                      BT_PRINT_BRM_ASSERT(0x00F8)
#define BT_PRINT_SNIFF_EXIST                                                BT_PRINT_BRM_ASSERT(0x00F9)
#define BT_PRINT_SNIFF_ALLOC_FAIL                                           BT_PRINT_BRM_ASSERT(0x00FA)
#define BT_PRINT_DUT_TX_TEST_SCENE                                          BT_PRINT_BRM_ASSERT(0x00FB)
#define BT_PRINT_DUT_CONTROL_NULL                                           BT_PRINT_BRM_ASSERT(0x00FC)
#define BT_PRINT_DUT_CONTROL_STATE                                          BT_PRINT_BRM_ASSERT(0x00FD)
#define BT_PRINT_DUT_TX_TEST                                                BT_PRINT_BRM_ASSERT(0x00FE)
#define BT_PRINT_SCO_XFER_CFG_HDL_INVALID                                   BT_PRINT_BRM_ERR(0x00FF)
#define BT_PRINT_SCO_XFER_GET_PKTHDR_FAIL                                   BT_PRINT_BRM_ERR(0x0100)
#define BT_PRINT_SCO_XFER_GET_RXBUF_FAIL                                    BT_PRINT_BRM_ERR(0x0101)
#define BT_PRINT_SCO_XFER_GET_REP_FAIL                                      BT_PRINT_BRM_ERR(0x0102)
#define BT_PRINT_SAF4_BTCLK                                                 BT_PRINT_BRM_INF(0x0103)
#define BT_PRINT_SAF2_BTCLK                                                 BT_PRINT_BRM_INF(0x0104)

//LC
#define BT_PRINT_LC_ERR(x)                         ((x) | BT_PRINT_ID_LC | BT_PRINT_LVL_ERROR)
#define BT_PRINT_LC_WRN(x)                         ((x) | BT_PRINT_ID_LC | BT_PRINT_LVL_WARNING)
#define BT_PRINT_LC_INF(x)                         ((x) | BT_PRINT_ID_LC | BT_PRINT_LVL_INFO)
#define BT_PRINT_LC_DBG(x)                         ((x) | BT_PRINT_ID_LC | BT_PRINT_LVL_DEBUG)
#define BT_PRINT_LC_ACL_RX_CRC_ERR                                          BT_PRINT_LC_ERR(0x0000)
#define BT_PRINT_LC_SYNC_RX_CRC_ERR                                         BT_PRINT_LC_ERR(0x0001)
#define BT_PRINT_LC_CALC_FREQ_CLK_ERR_IDX                                   BT_PRINT_LC_ERR(0x0002)
#define BT_PRINT_LC_CALC_FREQ_CLK_ERR_BTCLK                                 BT_PRINT_LC_ERR(0x0003)
#define BT_PRINT_LC_CALC_FREQ_CLK_ERR_TMPCLK                                BT_PRINT_LC_ERR(0x0004)
#define BT_PRINT_LC_AUX1                                                    BT_PRINT_LC_WRN(0x0005)
#define BT_PRINT_LC_AM_ADDR0                                                BT_PRINT_LC_WRN(0x0006)
#define BT_PRINT_LC_RX_FLUSH                                                BT_PRINT_LC_WRN(0x0007)
#define BT_PRINT_LC_WCNT                                                    BT_PRINT_LC_WRN(0x0008)
#define BT_PRINT_LC_RX_LMP_ACK_IDX                                          BT_PRINT_LC_INF(0x0009)
#define BT_PRINT_LC_RX_LMP_ACK_CMD                                          BT_PRINT_LC_INF(0x000A)
#define BT_PRINT_LC_RX_SP_CRC_ERR                                           BT_PRINT_LC_ERR(0x000B)
#define BT_PRINT_LC_RX_SP_DUP_DATA                                          BT_PRINT_LC_WRN(0x000C)
#define BT_PRINT_LC_RX_DV_LOST_LMP_IDX                                      BT_PRINT_LC_WRN(0x000D)
#define BT_PRINT_LC_RX_DV_LOST_LMP_CMD                                      BT_PRINT_LC_WRN(0x000E)
#define BT_PRINT_LC_SCAN_ENTER_CONN_MASTER_CLK                              BT_PRINT_LC_DBG(0x000F)
#define BT_PRINT_LC_CONN_RX_HDR_HEC_IDX                                     BT_PRINT_LC_DBG(0x0010)
#define BT_PRINT_LC_CONN_RX_HDR_HEC_TMPCLK                                  BT_PRINT_LC_DBG(0x0011)
#define BT_PRINT_LC_CONN_RX_HDR_HEC_LAST_CLK                                BT_PRINT_LC_DBG(0x0012)
#define BT_PRINT_LC_SYNC_RX_DATA_MISS_LLID                                  BT_PRINT_LC_DBG(0x0013)
#define BT_PRINT_LC_SYNC_RX_DATA_MISS_RSV_CLK                               BT_PRINT_LC_DBG(0x0014)
#define BT_PRINT_LC_SYNC_RX_HDR_HEC_IDX                                     BT_PRINT_LC_DBG(0x0015)
#define BT_PRINT_LC_SYNC_RX_HDR_HEC_LAST_CLK                                BT_PRINT_LC_DBG(0x0016)
#define BT_PRINT_LC_DISCARD_REACH_MIN_CHN                                   BT_PRINT_LC_DBG(0x0017)
#define BT_PRINT_LC_DISCARD_REACH_MIN_CHN2                                  BT_PRINT_LC_DBG(0x0018)
#define BT_PRINT_LC_LITTLE_WIFI_INTER                                       BT_PRINT_LC_DBG(0x0019)
#define BT_PRINT_LC_OBVIOUS_WIFI_INTER                                      BT_PRINT_LC_DBG(0x001A)
#define BT_PRINT_LC_DELAY_FREE_LAST_WCH                                     BT_PRINT_LC_DBG(0x001B)
#define BT_PRINT_LC_LWA                                                     BT_PRINT_LC_DBG(0x001C)
#define BT_PRINT_LC_CHN_ASSESS_UPDATE_CWA                                   BT_PRINT_LC_DBG(0x001D)
#define BT_PRINT_LC_CHN_ASSESS_UPDATE_NWA                                   BT_PRINT_LC_DBG(0x001E)
#define BT_PRINT_LC_CHN_ASSESS_UPDATE_OWA                                   BT_PRINT_LC_DBG(0x001F)
#define BT_PRINT_LC_SYNC_TXDATA_NULL                                        BT_PRINT_LC_WRN(0x0020)
#define BT_PRINT_LC_SCO_SEND_BUF_NULL                                       BT_PRINT_LC_WRN(0x0021)
#define BT_PRINT_LC_SCO_TX_LEN_NULL                                         BT_PRINT_LC_WRN(0x0022)
#define BT_PRINT_LC_DISCARD_REACH_MIN_CHN3                                  BT_PRINT_LC_DBG(0x0023)

//LM
#define BT_PRINT_LM_ERR(x)                         ((x) | BT_PRINT_ID_LM | BT_PRINT_LVL_ERROR)
#define BT_PRINT_LM_WRN(x)                         ((x) | BT_PRINT_ID_LM | BT_PRINT_LVL_WARNING)
#define BT_PRINT_LM_INF(x)                         ((x) | BT_PRINT_ID_LM | BT_PRINT_LVL_INFO)
#define BT_PRINT_LM_DBG(x)                         ((x) | BT_PRINT_ID_LM | BT_PRINT_LVL_DEBUG)
#define BT_PRINT_LM_TXRX_HEX(x)                    ((x) | BT_PRINT_ID_LM | BT_PRINT_LVL_INFO | BT_PRINT_HEX_LMP)
#define BT_PRINT_LM_HEX(x)                         ((x) | BT_PRINT_ID_LM | BT_PRINT_LVL_INFO | BT_PRINT_HEX_MISC)
#define BT_PRINT_SSTC                                                       BT_PRINT_LM_ERR(0x0000)
#define BT_PRINT_NOT_ALLOW_DESCO                                            BT_PRINT_LM_ERR(0x0001)
#define BT_PRINT_UNKNOWN_LMP                                                BT_PRINT_LM_ERR(0x0002)
#define BT_PRINT_S_MIC                                                      BT_PRINT_LM_ERR(0x0003)
#define BT_PRINT_MASTER_IN_SP_LINK                                          BT_PRINT_LM_ERR(0x0004)
#define BT_PRINT_SP_LINK_ALREADY_EXIST                                      BT_PRINT_LM_ERR(0x0005)
#define BT_PRINT_TWS_LINK_BAD                                               BT_PRINT_LM_ERR(0x0006)
#define BT_PRINT_SP_LINK_BAD                                                BT_PRINT_LM_ERR(0x0007)
#define BT_PRINT_CREATE_SP_PENDING                                          BT_PRINT_LM_ERR(0x0008)
#define BT_PRINT_CREATE_SP_AT_TWS_SNIFF                                     BT_PRINT_LM_ERR(0x0009)
#define BT_PRINT_SP_SYNC_ALREADY_EXIST                                      BT_PRINT_LM_ERR(0x000A)
#define BT_PRINT_SP_SW_TWS_BAD                                              BT_PRINT_LM_ERR(0x000B)
#define BT_PRINT_WAEA                                                       BT_PRINT_LM_WRN(0x000C)
#define BT_PRINT_WASA                                                       BT_PRINT_LM_WRN(0x000D)
#define BT_PRINT_LM_SHARED_SECRET_FAILED                                    BT_PRINT_LM_WRN(0x000E)
#define BT_PRINT_LM_NO_OOB                                                  BT_PRINT_LM_WRN(0x000F)
#define BT_PRINT_LM_NO_OOB256                                               BT_PRINT_LM_WRN(0x0010)
#define BT_PRINT_ROLE_SWITCH_FAILED_REASON                                  BT_PRINT_LM_WRN(0x0011)
#define BT_PRINT_ROLE_SWITCH_FAILED                                         BT_PRINT_LM_WRN(0x0012)
#define BT_PRINT_PAUSE_SP_NOT_ACTIVE                                        BT_PRINT_LM_WRN(0x0013)
#define BT_PRINT_PAUSE_SP_AT_SNIFF                                          BT_PRINT_LM_WRN(0x0014)
#define BT_PRINT_PAUSE_SP_AT_DL_SNIFF                                       BT_PRINT_LM_WRN(0x0015)
#define BT_PRINT_PAUSE_SP_NOT_ENABLE                                        BT_PRINT_LM_WRN(0x0016)
#define BT_PRINT_OOB_AUTH                                                   BT_PRINT_LM_INF(0x0017)
#define BT_PRINT_PASSKEY_ENTRY_AUTH                                         BT_PRINT_LM_INF(0x0018)
#define BT_PRINT_SSP_FINISH_NEW_LINKKEY_GENERATE                            BT_PRINT_LM_INF(0x0019)
#define BT_PRINT_FREE_SP                                                    BT_PRINT_LM_INF(0x001A)
#define BT_PRINT_FREE_PIN                                                   BT_PRINT_LM_INF(0x001B)
#define BT_PRINT_TWS_ER                                                     BT_PRINT_LM_INF(0x001C)
#define BT_PRINT_DECR_POWER_CUR                                             BT_PRINT_LM_INF(0x001D)
#define BT_PRINT_DECR_POWER_RST                                             BT_PRINT_LM_INF(0x001E)
#define BT_PRINT_INCR_POWER_CUR                                             BT_PRINT_LM_INF(0x001F)
#define BT_PRINT_INCR_POWER_RST                                             BT_PRINT_LM_INF(0x0020)
#define BT_PRINT_POWER_CTRL_CUR                                             BT_PRINT_LM_INF(0x0021)
#define BT_PRINT_POWER_CTRL_RST                                             BT_PRINT_LM_INF(0x0022)
#define BT_PRINT_POWER_CTRL_INC                                             BT_PRINT_LM_INF(0x0023)
#define BT_PRINT_POWER_CTRL_DEC                                             BT_PRINT_LM_INF(0x0024)
#define BT_PRINT_POWER_CTRL_MAX                                             BT_PRINT_LM_INF(0x0025)
#define BT_PRINT_POWER_MONITOR_RSSI_IDX                                     BT_PRINT_LM_INF(0x0026)
#define BT_PRINT_POWER_MONITOR_RSSI_VAL                                     BT_PRINT_LM_INF(0x0027)
#define BT_PRINT_POWER_MONITOR_RSSI_TX_POWER                                BT_PRINT_LM_INF(0x0028)
#define BT_PRINT_POWER_MONITOR_RSSI_LINK_QUALITY                            BT_PRINT_LM_INF(0x0029)
#define BT_PRINT_POWER_MONITOR_REQ_INC_PWR_IDX                              BT_PRINT_LM_INF(0x002A)
#define BT_PRINT_POWER_MONITOR_REQ_INC_PWR_RSSI                             BT_PRINT_LM_INF(0x002B)
#define BT_PRINT_POWER_MONITOR_REQ_DEC_PWR_IDX                              BT_PRINT_LM_INF(0x002C)
#define BT_PRINT_POWER_MONITOR_REQ_DEC_PWR_RSSI                             BT_PRINT_LM_INF(0x002D)
#define BT_PRINT_POWER_MONITOR_DUT_RSSI                                     BT_PRINT_LM_INF(0x002E)
#define BT_PRINT_PEER_DEV_IS_MAX_PWR                                        BT_PRINT_LM_INF(0x002F)
#define BT_PRINT_PEER_DEV_IS_MIN_PWR                                        BT_PRINT_LM_INF(0x0030)
#define BT_PRINT_DHKEY_CALC_WORKING                                         BT_PRINT_LM_INF(0x0031)
#define BT_PRINT_DHKEY_CALC_FINISH                                          BT_PRINT_LM_INF(0x0032)
#define BT_PRINT_DHKEY256_CALC_PUB_KEY                                      BT_PRINT_LM_INF(0x0033)
#define BT_PRINT_DHKEY256_CALC_DHKEY                                        BT_PRINT_LM_INF(0x0034)
#define BT_PRINT_DHKEY256_CALC_FINISH                                       BT_PRINT_LM_INF(0x0035)
#define BT_PRINT_SET_DHKEY                                                  BT_PRINT_LM_INF(0x0036)
#define BT_PRINT_START_DHKEY_CALC                                           BT_PRINT_LM_INF(0x0037)
#define BT_PRINT_AUTH_METHOD                                                BT_PRINT_LM_INF(0x0038)
#define BT_PRINT_AUTH_STAGE2_PASSKEY                                        BT_PRINT_LM_INF(0x0039)
#define BT_PRINT_FREE_SP_RECV_SRES                                          BT_PRINT_LM_INF(0x003A)
#define BT_PRINT_FREE_PIN_RECV_SRES                                         BT_PRINT_LM_INF(0x003B)
#define BT_PRINT_TEST_CTRL_SCEN                                             BT_PRINT_LM_INF(0x003C)
#define BT_PRINT_TEST_CTRL_HOP_MODE                                         BT_PRINT_LM_INF(0x003D)
#define BT_PRINT_TEST_CTRL_TX_FREQ                                          BT_PRINT_LM_INF(0x003E)
#define BT_PRINT_TEST_CTRL_RX_FREQ                                          BT_PRINT_LM_INF(0x003F)
#define BT_PRINT_TEST_CTRL_PWR_CTRL_MODE                                    BT_PRINT_LM_INF(0x0040)
#define BT_PRINT_TEST_CTRL_PKT_TYPE                                         BT_PRINT_LM_INF(0x0041)
#define BT_PRINT_TEST_CTRL_DATA_LEN                                         BT_PRINT_LM_INF(0x0042)
#define BT_PRINT_TEST_CTRL_PAUSE                                            BT_PRINT_LM_INF(0x0043)
#define BT_PRINT_PAIR_FINISH_LINKKEY_CREATE                                 BT_PRINT_LM_INF(0x0044)
#define BT_PRINT_AUTH_STAGE2_PASSKEY_20                                     BT_PRINT_LM_INF(0x0045)
#define BT_PRINT_SP_CLK_UPDATE_AT_SP_DETACH_PEND                            BT_PRINT_LM_INF(0x0046)
#define BT_PRINT_SET_TWS_LINK_IDX                                           BT_PRINT_LM_INF(0x0047)
#define BT_PRINT_SET_TWS_LINK_MAX_PWR                                       BT_PRINT_LM_INF(0x0048)
#define BT_PRINT_ROLE_SWITCH_SUCCESS                                        BT_PRINT_LM_INF(0x0049)
#define BT_PRINT_LM_LINK_DEINIT_FREE_SP                                     BT_PRINT_LM_INF(0x004A)
#define BT_PRINT_IO_CAP_NEG_REPLY_FREE_SP                                   BT_PRINT_LM_INF(0x004B)
#define BT_PRINT_CONN_ACCEPT_TIMER_TIMEOUT                                  BT_PRINT_LM_DBG(0x004C)
#define BT_PRINT_INIT_CONN_ACCEPT_TIMER                                     BT_PRINT_LM_DBG(0x004D)
#define BT_PRINT_RESTART_LMP_RSP_OPCODE                                     BT_PRINT_LM_DBG(0x004E)
#define BT_PRINT_RESTART_LMP_RSP_TIMEOUT                                    BT_PRINT_LM_DBG(0x004F)
#define BT_PRINT_RESTART_LMP_RSP_NEED_CNT                                   BT_PRINT_LM_DBG(0x0050)
#define BT_PRINT_STOP_LMP_RSP_OPCODE                                        BT_PRINT_LM_DBG(0x0051)
#define BT_PRINT_STOP_LMP_RSP_NEED_CNT                                      BT_PRINT_LM_DBG(0x0052)
#define BT_PRINT_SP_PAUSE_ACCEPT                                            BT_PRINT_LM_DBG(0x0053)
#define BT_PRINT_SP_SWITCH_ACCEPT                                           BT_PRINT_LM_DBG(0x0054)
#define BT_PRINT_SP_TWS_AP_ACCEPT                                           BT_PRINT_LM_DBG(0x0055)
#define BT_PRINT_SP_DISCONN_ACCEPT                                          BT_PRINT_LM_DBG(0x0056)
#define BT_PRINT_SP_DISCONN_ACK                                             BT_PRINT_LM_DBG(0x0057)
#define BT_PRINT_SP_SYNC_DISC_ACCEPT                                        BT_PRINT_LM_DBG(0x0058)
#define BT_PRINT_SP_SYNC_DISC_ACK                                           BT_PRINT_LM_DBG(0x0059)
#define BT_PRINT_SP_SWITCH                                                  BT_PRINT_LM_DBG(0x005A)
#define BT_PRINT_SP_RESUME_ACCEPT                                           BT_PRINT_LM_DBG(0x005B)
#define BT_PRINT_SP_CLK_UPDATE_RSP                                          BT_PRINT_LM_DBG(0x005C)
#define BT_PRINT_SP_SET_ACTIVE                                              BT_PRINT_LM_DBG(0x005D)
#define BT_PRINT_SP_ACTIVE_ACCEPT                                           BT_PRINT_LM_DBG(0x005E)
#define BT_PRINT_SP_SYNC_NOT_EXIST                                          BT_PRINT_LM_DBG(0x005F)
#define BT_PRINT_SP_CLK_UPDATE_IND                                          BT_PRINT_LM_DBG(0x0060)
#define BT_PRINT_SP_CTRL_ERR_NOT_ACCEPT                                     BT_PRINT_LM_DBG(0x0061)
#define BT_PRINT_HOST_CONN_REQ_AUTO_ACCEPT                                  BT_PRINT_LM_DBG(0x0062)
#define BT_PRINT_START_SYNC_OFF_SWITCH                                      BT_PRINT_LM_DBG(0x0063)
#define BT_PRINT_PREFER_2M                                                  BT_PRINT_LM_DBG(0x0064)
#define BT_PRINT_PREFER_3M                                                  BT_PRINT_LM_DBG(0x0065)
#define BT_PRINT_LMP_TO_OPCODE                                              BT_PRINT_LM_DBG(0x0067)
#define BT_PRINT_LMP_TO_NEED_RSP_CNT                                        BT_PRINT_LM_DBG(0x0068)
#define BT_PRINT_RECV_IOCAP_REQ_SP                                          BT_PRINT_LM_DBG(0x0069)
#define BT_PRINT_RECV_SCO_LINK_REQ_AUTO_ACCEPT                              BT_PRINT_LM_DBG(0x006A)
#define BT_PRINT_RECV_ESCO_REQ_AUTO_ACCEPT                                  BT_PRINT_LM_DBG(0x006B)
#define BT_PRINT_SNIFF_SUBRATING_MAX_LATENCY1                               BT_PRINT_LM_DBG(0x006C)
#define BT_PRINT_SNIFF_SUBRATING_MAX_LATENCY2                               BT_PRINT_LM_DBG(0x006D)
#define BT_PRINT_SNIFF_SUBRATING_INSTANT                                    BT_PRINT_LM_DBG(0x006E)
#define BT_PRINT_SNIFF_SUBRATING_COMMON_SUBRATE                             BT_PRINT_LM_DBG(0x006F)
#define BT_PRINT_SNIFF_SUBRATING_NEXT_ANCHOR_POINT1                         BT_PRINT_LM_DBG(0x0070)
#define BT_PRINT_SNIFF_SUBRATING_NEXT_ANCHOR_POINT2                         BT_PRINT_LM_DBG(0x0071)
#define BT_PRINT_RECV_IN_RAND_PIN                                           BT_PRINT_LM_DBG(0x0072)
#define BT_PRINT_RECV_COMB_KEY_CHAN_LK                                      BT_PRINT_LM_DBG(0x0073)
#define BT_PRINT_PEER_NOT_ACCEPT_SCO_REQ                                    BT_PRINT_LM_DBG(0x0074)
#define BT_PRINT_PEER_NOT_ACCEPT_ESCO_REQ                                   BT_PRINT_LM_DBG(0x0075)
#define BT_PRINT_RX_SP_SWITCH_ACCEPT                                        BT_PRINT_LM_DBG(0x0076)
#define BT_PRINT_RX_SP_SWITCH_WORKING                                       BT_PRINT_LM_DBG(0x0077)
#define BT_PRINT_RX_SP_DISCONN                                              BT_PRINT_LM_DBG(0x0078)
#define BT_PRINT_RX_SP_PAUSE                                                BT_PRINT_LM_DBG(0x0079)
#define BT_PRINT_RX_SP_RESUME                                               BT_PRINT_LM_DBG(0x007A)
#define BT_PRINT_RX_SP_RESUME_ACCEPT                                        BT_PRINT_LM_DBG(0x007B)
#define BT_PRINT_RX_SP_PAUSE_ACCEPT                                         BT_PRINT_LM_DBG(0x007C)
#define BT_PRINT_RX_SP_SYNC_DISCONN_ACCEPT                                  BT_PRINT_LM_DBG(0x007D)
#define BT_PRINT_RX_SP_SYNC_DISCONN                                         BT_PRINT_LM_DBG(0x007E)
#define BT_PRINT_RX_SP_CLK_REQ                                              BT_PRINT_LM_DBG(0x007F)
#define BT_PRINT_CLK_UP_CFLT1                                               BT_PRINT_LM_DBG(0x0080)
#define BT_PRINT_CLK_UP_CFLT2                                               BT_PRINT_LM_DBG(0x0081)
#define BT_PRINT_RX_SP_CLK_IND                                              BT_PRINT_LM_DBG(0x0082)
#define BT_PRINT_RX_SP_SET_ACTIVE                                           BT_PRINT_LM_DBG(0x0083)
#define BT_PRINT_RX_SP_ACTIVE_ACCEPT                                        BT_PRINT_LM_DBG(0x0084)
#define BT_PRINT_RX_SP_SWITCH                                               BT_PRINT_LM_DBG(0x0085)
#define BT_PRINT_RX_SP_TWS_AP                                               BT_PRINT_LM_DBG(0x0086)
#define BT_PRINT_RX_SP_IDX                                                  BT_PRINT_LM_DBG(0x0087)
#define BT_PRINT_RX_SP_DISCONN_ACK                                          BT_PRINT_LM_DBG(0x0088)
#define BT_PRINT_RX_SP_DISCONN_ACCEPT                                       BT_PRINT_LM_DBG(0x0089)
#define BT_PRINT_RX_SP_SYNC_IDX                                             BT_PRINT_LM_DBG(0x008A)
#define BT_PRINT_RX_SP_SYNC_DISCONN_ACK                                     BT_PRINT_LM_DBG(0x008B)
#define BT_PRINT_RX_SP_SWITCH_FINISH                                        BT_PRINT_LM_DBG(0x008C)
#define BT_PRINT_RX_SP_AP_ACCEPT                                            BT_PRINT_LM_DBG(0x008D)
#define BT_PRINT_RX_SP_CLK_RSP                                              BT_PRINT_LM_DBG(0x008E)
#define BT_PRINT_RX_SP_NOT_ACCEPT                                           BT_PRINT_LM_DBG(0x008F)
#define BT_PRINT_RX_SP_SYNC_NOT_EXIST                                       BT_PRINT_LM_DBG(0x0090)
#define BT_PRINT_TEMP_RAND_PIN                                              BT_PRINT_LM_DBG(0x0091)
#define BT_PRINT_DEL_CONN_ACCEPT_TIMER                                      BT_PRINT_LM_DBG(0x0092)
#define BT_PRINT_DEL_SYNC_ACCEPT_TIMER                                      BT_PRINT_LM_DBG(0x0093)
#define BT_PRINT_UPPER_REQ_ENC_WHEN_ROLE_SWITCH_IS_BUSY                     BT_PRINT_LM_DBG(0x0094)
#define BT_PRINT_UPPER_CHANGE_LINKKEY                                       BT_PRINT_LM_DBG(0x0095)
#define BT_PRINT_UPPER_REQ_AUTH_WHEN_ROLE_SWITCH_IS_BUSY                    BT_PRINT_LM_DBG(0x0096)
#define BT_PRINT_UPPER_IOCAP_REPLY_SP                                       BT_PRINT_LM_DBG(0x0097)
#define BT_PRINT_UPPER_PIN_CODE_PIN                                         BT_PRINT_LM_DBG(0x0098)
#define BT_PRINT_UPPER_ACCEPT_DEL_CONN_ACC_TIMER                            BT_PRINT_LM_DBG(0x0099)
#define BT_PRINT_UPPER_REJECT_DEL_CONN_ACC_TIMER                            BT_PRINT_LM_DBG(0x009A)
#define BT_PRINT_UPPER_DISCONN_SP                                           BT_PRINT_LM_DBG(0x009B)
#define BT_PRINT_UPPER_DISCONN_SP_SYNC                                      BT_PRINT_LM_DBG(0x009C)
#define BT_PRINT_UPPER_SET_ACTIVE_ACT_PEND                                  BT_PRINT_LM_DBG(0x009D)
#define BT_PRINT_UPPER_SET_ACTIVE_RES_PEND                                  BT_PRINT_LM_DBG(0x009E)
#define BT_PRINT_RESET_LM_TIMEOUT_AFTER_ROLE_SWITCH                         BT_PRINT_LM_DBG(0x00A0)
#define BT_PRINT_LOCAL_EXIT_SNIFF                                           BT_PRINT_LM_DBG(0x00A1)
#define BT_PRINT_SEND_SYNC_OFF_REQ                                          BT_PRINT_LM_DBG(0x00A2)
#define BT_PRINT_SEND_SP_IDX                                                BT_PRINT_LM_DBG(0x00A3)
#define BT_PRINT_SEND_SP_SYNC_IDX                                           BT_PRINT_LM_DBG(0x00A4)
#define BT_PRINT_SP_R_TWS_RSSI                                              BT_PRINT_LM_DBG(0x00A5)
#define BT_PRINT_SP_R_DEV_RSSI                                              BT_PRINT_LM_DBG(0x00A6)
#define BT_PRINT_SP_R_TWS_LINK_QUALITY                                      BT_PRINT_LM_DBG(0x00A7)
#define BT_PRINT_SP_R_DEV_LINK_QUALITY                                      BT_PRINT_LM_DBG(0x00A8)
#define BT_PRINT_SP_SWITCH_FINISH                                           BT_PRINT_LM_DBG(0x00A9)
#define BT_PRINT_SP_SWITCH_UPDATE_CLK                                       BT_PRINT_LM_DBG(0x00AA)
#define BT_PRINT_SP_SWITCH_EXT_INFO                                         BT_PRINT_LM_DBG(0x00AB)
#define BT_PRINT_SP_SWITCH_COMPLETE                                         BT_PRINT_LM_DBG(0x00AC)
#define BT_PRINT_SP_SEND_TWS_DEV_COMMON_INFO                                BT_PRINT_LM_DBG(0x00AD)
#define BT_PRINT_SP_T_TWS_RSSI                                              BT_PRINT_LM_DBG(0x00AE)
#define BT_PRINT_SP_T_DEV_RSSI                                              BT_PRINT_LM_DBG(0x00AF)
#define BT_PRINT_SP_T_TWS_LINK_QUALITY                                      BT_PRINT_LM_DBG(0x00B0)
#define BT_PRINT_SP_T_DEV_LINK_QUALITY                                      BT_PRINT_LM_DBG(0x00B1)
#define BT_PRINT_SP_SEND_PEER_TWS_AP                                        BT_PRINT_LM_DBG(0x00B2)
#define BT_PRINT_SP_RESUME_WHEN_ACTIVE_PEND                                 BT_PRINT_LM_DBG(0x00B3)
#define BT_PRINT_SP_RESUME_WHEN_RESUME_PEND                                 BT_PRINT_LM_DBG(0x00B4)
#define BT_PRINT_SP_PAUSE                                                   BT_PRINT_LM_DBG(0x00B5)
#define BT_PRINT_SP_RESUME                                                  BT_PRINT_LM_DBG(0x00B6)
#define BT_PRINT_DATA_INFO_UPDATE_CHANGE_CLK1                               BT_PRINT_LM_DBG(0x00B7)
#define BT_PRINT_DATA_INFO_UPDATE_CHANGE_CLK2                               BT_PRINT_LM_DBG(0x00B8)
#define BT_PRINT_DATA_INFO_UPDATE_CHANGE_AFH                                BT_PRINT_LM_DBG(0x00B9)
#define BT_PRINT_SEND_PEER_SP_CLK_REQ                                       BT_PRINT_LM_DBG(0x00BA)
#define BT_PRINT_REJECT_TRUNCATED_PAGE_DUE_TO_PAGE_INQUIRY_WORKING          BT_PRINT_LM_DBG(0x00BB)
#define BT_PRINT_LM_TX                                                      BT_PRINT_LM_TXRX_HEX(0x00BC)
#define BT_PRINT_LM_TX_INDEX                                                BT_PRINT_LM_INF(0x00BD)
#define BT_PRINT_LM_START_ENC_RAND                                          BT_PRINT_LM_HEX(0x00BE)
#define BT_PRINT_LM_START_ENC_LK                                            BT_PRINT_LM_HEX(0x00BF)
#define BT_PRINT_LM_START_ENC_ACO                                           BT_PRINT_LM_HEX(0x00C0)
#define BT_PRINT_LM_START_ENC_KEY_PRIMES                                    BT_PRINT_LM_HEX(0x00C1)
#define BT_PRINT_LM_SC_CYCLE_CALC_DHKEY                                     BT_PRINT_LM_HEX(0x00C2)
#define BT_PRINT_LM_SEND_SWITCH_SP_INFO                                     BT_PRINT_LM_HEX(0x00C3)
#define BT_PRINT_LM_SEND_SP_INFO                                            BT_PRINT_LM_HEX(0x00C4)
#define BT_PRINT_LM_SEND_SYNC_SP_INFO                                       BT_PRINT_LM_HEX(0x00C5)
#define BT_PRINT_LM_RX_RELEASE                                              BT_PRINT_LM_TXRX_HEX(0x00C6)
#define BT_PRINT_LM_RX                                                      BT_PRINT_LM_TXRX_HEX(0x00C7)
#define BT_PRINT_LM_RX_INDEX                                                BT_PRINT_LM_INF(0x00C8)
#define BT_PRINT_LM_TX_NULL_PKT                                             BT_PRINT_LM_INF(0x00C9)
#define BT_PRINT_SP_SET_INACTIVE                                            BT_PRINT_LM_DBG(0x00CA)
#define BT_PRINT_LM_TUNE_DECR_2DB                                           BT_PRINT_LM_INF(0x00CB)
#define BT_PRINT_LM_TUNE_DECR_1DB                                           BT_PRINT_LM_INF(0x00CC)
#define BT_PRINT_LM_TUNE_INCR_2DB                                           BT_PRINT_LM_INF(0x00CD)
#define BT_PRINT_LM_POWER_CTRL_TUNE_INCR                                    BT_PRINT_LM_INF(0x00CE)
#define BT_PRINT_LM_POWER_CTRL_TUNE_DECR_2DB                                BT_PRINT_LM_INF(0x00CF)
#define BT_PRINT_LM_POWER_CTRL_TUNE_DECR_1DB                                BT_PRINT_LM_INF(0x00D0)

//DM
#define BT_PRINT_DM_ERR(x)                         ((x) | BT_PRINT_ID_DM | BT_PRINT_LVL_ERROR)
#define BT_PRINT_DM_WRN(x)                         ((x) | BT_PRINT_ID_DM | BT_PRINT_LVL_WARNING)
#define BT_PRINT_DM_INF(x)                         ((x) | BT_PRINT_ID_DM | BT_PRINT_LVL_INFO)
#define BT_PRINT_DM_DBG(x)                         ((x) | BT_PRINT_ID_DM | BT_PRINT_LVL_DEBUG)
#define BT_PRINT_DM_HEX(x)                         ((x) | BT_PRINT_ID_DM | BT_PRINT_LVL_INFO | BT_PRINT_HEX_MISC)
#define BT_PRINT_NO_ECC                                                     BT_PRINT_DM_ERR(0x0000)
#define BT_PRINT_UECC_MAKE_KEY_FAILED                                       BT_PRINT_DM_WRN(0x0001)
#define BT_PRINT_SHARED_SECRET_FAILED                                       BT_PRINT_DM_WRN(0x0002)
#define BT_PRINT_INQ_SCAN_QUAL_MODE                                         BT_PRINT_DM_INF(0x0003)
#define BT_PRINT_REJECT_DUE_TO_PAGE_INQUIRY_WORKING                         BT_PRINT_DM_DBG(0x0004)
#define BT_PRINT_PAGE_LINK_EXIST                                            BT_PRINT_DM_DBG(0x0005)
#define BT_PRINT_INQUIRY_FILTER_IDX                                         BT_PRINT_DM_DBG(0x0006)
#define BT_PRINT_INQUIRY_FILTER_TYPE                                        BT_PRINT_DM_DBG(0x0007)
#define BT_PRINT_INQUIRY_FILTER_CONDITION_TYPE                              BT_PRINT_DM_DBG(0x0008)
#define BT_PRINT_PRIVATE_KEY_TEST                                           BT_PRINT_DM_HEX(0x0009)
#define BT_PRINT_PRIVATE_KEY_TEST2                                          BT_PRINT_DM_HEX(0x000A)
#define BT_PRINT_F1_G_TEST_U                                                BT_PRINT_DM_HEX(0x000B)
#define BT_PRINT_PUBLIC_KEY_TEST                                            BT_PRINT_DM_HEX(0x000C)
#define BT_PRINT_DHKEY_TEST                                                 BT_PRINT_DM_HEX(0x000D)
#define BT_PRINT_SC_KEY_INIT                                                BT_PRINT_DM_DBG(0x000E)
#define BT_PRINT_SC_DHKEY_TEST_TIME_US                                      BT_PRINT_DM_DBG(0x000F)
#define BT_PRINT_SC_PRIVATE_KEY_TEST                                        BT_PRINT_DM_HEX(0x0010)
#define BT_PRINT_COMMITMENT_F1_TEST                                         BT_PRINT_DM_HEX(0x0011)
#define BT_PRINT_COMMITMENT_F1_TEST2                                        BT_PRINT_DM_HEX(0x0012)
#define BT_PRINT_KEY_DERIVATION_F2_LINKKEY                                  BT_PRINT_DM_HEX(0x0013)
#define BT_PRINT_KEY_DERIVATION_F2_LINKKEY2                                 BT_PRINT_DM_HEX(0x0014)
#define BT_PRINT_CHECK_DHKEY_TEST                                           BT_PRINT_DM_HEX(0x0015)
#define BT_PRINT_CHECK_DHKEY_TEST2                                          BT_PRINT_DM_HEX(0x0016)
#define BT_PRINT_AUTH_KEY_TEST                                              BT_PRINT_DM_HEX(0x0017)
#define BT_PRINT_ACO_TEST                                                   BT_PRINT_DM_HEX(0x0018)
#define BT_PRINT_ENCRY_KEY_TEST                                             BT_PRINT_DM_HEX(0x0019)
#define BT_PRINT_SRES_MASTER_TEST                                           BT_PRINT_DM_DBG(0x001A)
#define BT_PRINT_SRES_SLAVE_TEST                                            BT_PRINT_DM_DBG(0x001B)

//CSB
#define BT_PRINT_CSB_ERR(x)                         ((x) | BT_PRINT_ID_CSB | BT_PRINT_LVL_ERROR)
#define BT_PRINT_CSB_WRN(x)                         ((x) | BT_PRINT_ID_CSB | BT_PRINT_LVL_WARNING)
#define BT_PRINT_CSB_INF(x)                         ((x) | BT_PRINT_ID_CSB | BT_PRINT_LVL_INFO)
#define BT_PRINT_CSB_DBG(x)                         ((x) | BT_PRINT_ID_CSB | BT_PRINT_LVL_DEBUG)
#define BT_PRINT_CSB_ASSERT(x)                      ((x) | BT_PRINT_ID_CSB | BT_PRINT_LVL_ASSERT)
#define BT_PRINT_SS_STANDBY                                                 BT_PRINT_CSB_ERR(0x0000)
#define BT_PRINT_SS_NULL                                                    BT_PRINT_CSB_ERR(0x0001)
#define BT_PRINT_SS_IDX                                                     BT_PRINT_CSB_ERR(0x0002)
#define BT_PRINT_SS_TMP_CLK                                                 BT_PRINT_CSB_ERR(0x0003)
#define BT_PRINT_SS_LAST_CONTACT_CLK                                        BT_PRINT_CSB_ERR(0x0004)
#define BT_PRINT_SS_HEC                                                     BT_PRINT_CSB_ERR(0x0005)
#define BT_PRINT_SS_NO_PKT                                                  BT_PRINT_CSB_ERR(0x0006)
#define BT_PRINT_SS_END                                                     BT_PRINT_CSB_WRN(0x0007)
#define BT_PRINT_CSB_ACL_FULL                                               BT_PRINT_CSB_WRN(0x0008)
#define BT_PRINT_MAS_TO                                                     BT_PRINT_CSB_INF(0x0009)
#define BT_PRINT_ST_TEST_INIT                                               BT_PRINT_CSB_INF(0x000A)
#define BT_PRINT_SYNC_TRAIN_TEST_ST_ENV                                     BT_PRINT_CSB_INF(0x000B)
#define BT_PRINT_SYNC_TRAIN_TEST_ENABLE                                     BT_PRINT_CSB_INF(0x000C)
#define BT_PRINT_SYNC_TRAIN_TEST_ENABLE2                                    BT_PRINT_CSB_INF(0x000D)
#define BT_PRINT_CSB_SLAVE_RX_HEX_IDX                                       BT_PRINT_CSB_INF(0x000E)
#define BT_PRINT_CSB_SLAVE_RX_HEX_TMP_CLK                                   BT_PRINT_CSB_INF(0x000F)
#define BT_PRINT_CSB_SLAVE_RX_HEX_CLK                                       BT_PRINT_CSB_INF(0x0010)
#define BT_PRINT_CSB_SLAVE_TO                                               BT_PRINT_CSB_INF(0x0011)
#define BT_PRINT_CSB_SLAVE_TO_CLK                                           BT_PRINT_CSB_INF(0x0012)
#define BT_PRINT_CSB_SBE0                                                   BT_PRINT_CSB_INF(0x0013)
#define BT_PRINT_SYNC_SCAN_TEST                                             BT_PRINT_CSB_INF(0x0014)
#define BT_PRINT_SYNC_SCAN_TEST_ENABLE                                      BT_PRINT_CSB_INF(0x0015)
#define BT_PRINT_SYNC_SCAN_TEST_RECV_CSB                                    BT_PRINT_CSB_INF(0x0016)
#define BT_PRINT_CSB_M_RESUME1                                              BT_PRINT_CSB_ASSERT(0x0017)
#define BT_PRINT_CSB_SSL_RESUME1                                            BT_PRINT_CSB_ASSERT(0x0018)
#define BT_PRINT_SYNCSCAN_RX_PKD                                            BT_PRINT_CSB_ASSERT(0x0019)
#define BT_PRINT_CSB_SR_HDR_DEAL                                            BT_PRINT_CSB_ASSERT(0x001A)
#define BT_PRINT_CSB_SLAVE_RESUME1                                          BT_PRINT_CSB_ASSERT(0x001B)

//LL
#define BT_PRINT_LL_ERR(x)                         ((x) | BT_PRINT_ID_LL | BT_PRINT_LVL_ERROR)
#define BT_PRINT_LL_WRN(x)                         ((x) | BT_PRINT_ID_LL | BT_PRINT_LVL_WARNING)
#define BT_PRINT_LL_INF(x)                         ((x) | BT_PRINT_ID_LL | BT_PRINT_LVL_INFO)
#define BT_PRINT_LL_DBG(x)                         ((x) | BT_PRINT_ID_LL | BT_PRINT_LVL_DEBUG)
#define BT_PRINT_LL_HEX(x)                         ((x) | BT_PRINT_ID_LL | BT_PRINT_LVL_INFO | BT_PRINT_HEX_MISC)
#define BT_PRINT_LL_RL_E                                                    BT_PRINT_LL_ERR(0x0000)
#define BT_PRINT_LL_RL_MATCH_WL0                                            BT_PRINT_LL_INF(0x0001)
#define BT_PRINT_LL_ADD_DEV2WL_SET_WL                                       BT_PRINT_LL_INF(0x0002)
#define BT_PRINT_LL_ADD_DEV2WL_MATCH_WL                                     BT_PRINT_LL_INF(0x0003)
#define BT_PRINT_LL_ADD_DEV2WL_EMPTY_ENTRY                                  BT_PRINT_LL_INF(0x0004)
#define BT_PRINT_LL_ADD_DEV2WL_ADDR_TYPE                                    BT_PRINT_LL_INF(0x0005)
#define BT_PRINT_LL_GET_ADDR_IS_RPA                                         BT_PRINT_LL_INF(0x0006)
#define BT_PRINT_LL_GENERATE_AA                                             BT_PRINT_LL_DBG(0x0007)
#define BT_PRINT_LL_ADD_WHITE_LIST_ADDR                                     BT_PRINT_LL_HEX(0x0008)
#define BT_PRINT_LL_SET_CIS_LINK_BG                                         BT_PRINT_LL_DBG(0x0009)

//CIS
#define BT_PRINT_CIS_ERR(x)                         ((x) | BT_PRINT_ID_CIS | BT_PRINT_LVL_ERROR)
#define BT_PRINT_CIS_WRN(x)                         ((x) | BT_PRINT_ID_CIS | BT_PRINT_LVL_WARNING)
#define BT_PRINT_CIS_INF(x)                         ((x) | BT_PRINT_ID_CIS | BT_PRINT_LVL_INFO)
#define BT_PRINT_CIS_DBG(x)                         ((x) | BT_PRINT_ID_CIS | BT_PRINT_LVL_DEBUG)
#define BT_PRINT_CIS_ASSERT(x)                      ((x) | BT_PRINT_ID_CIS | BT_PRINT_LVL_ASSERT)
#define BT_PRINT_RX_RINGBUF_NULL_SEQ                                        BT_PRINT_CIS_WRN(0x0000)
#define BT_PRINT_RX_RINGBUF_REP_NIL                                         BT_PRINT_CIS_WRN(0x0001)
#define BT_PRINT_RX_LEN_0_PKT                                               BT_PRINT_CIS_WRN(0x0002)
#define BT_PRINT_RX_EEC                                                     BT_PRINT_CIS_WRN(0x0003)
#define BT_PRINT_DB_NILL                                                    BT_PRINT_CIS_WRN(0x0004)
#define BT_PRINT_DIRECT_RX_UNFRAME_FT                                       BT_PRINT_CIS_DBG(0x0005)
#define BT_PRINT_CIS_TX_NIL                                                 BT_PRINT_CIS_WRN(0x0006)
#define BT_PRINT_DIFF_ISO_INT_CIG                                           BT_PRINT_CIS_ERR(0x0008)
#define BT_PRINT_DIFF_ISO_INT_REQ                                           BT_PRINT_CIS_ERR(0x0009)
#define BT_PRINT_CIS_INST_PASS                                              BT_PRINT_CIS_ERR(0x000A)
#define BT_PRINT_SET_CIG_M_PHY                                              BT_PRINT_CIS_ERR(0x000B)
#define BT_PRINT_SET_CIG_S_PHY                                              BT_PRINT_CIS_ERR(0x000C)
#define BT_PRINT_SET_CIG_FET1                                               BT_PRINT_CIS_ERR(0x000D)
#define BT_PRINT_CIS_PRE_TX_REL                                             BT_PRINT_CIS_ERR(0x000E)
#define BT_PRINT_CIS_TX_REL                                                 BT_PRINT_CIS_ERR(0x000F)
#define BT_PRINT_CIS_CONN_TIMEOUT                                           BT_PRINT_CIS_ERR(0x0010)
#define BT_PRINT_CIS_FAIL_TO_ESTABLISH                                      BT_PRINT_CIS_ERR(0x0011)
#define BT_PRINT_CIS_RX_MIC_ERR_LEN                                         BT_PRINT_CIS_ERR(0x0012)
#define BT_PRINT_CIS_RX_MIC_ERR_PKT_CNT                                     BT_PRINT_CIS_ERR(0x0013)
#define BT_PRINT_CIS_CIS_M_TX_IRQ                                           BT_PRINT_CIS_ERR(0x0014)
#define BT_PRINT_CIS_CIS_M_TX_EVT_CNT                                       BT_PRINT_CIS_ERR(0x0015)
#define BT_PRINT_UFA_ISO_DATA_LOAD_LEN                                      BT_PRINT_CIS_ERR(0x0016)
#define BT_PRINT_UFA_ISO_DATA_LOAD_SDU                                      BT_PRINT_CIS_ERR(0x0017)
#define BT_PRINT_CIS_TX_TEST_Q_OUT_NEW_NULL                                 BT_PRINT_CIS_ERR(0x0018)
#define BT_PRINT_CIS_SKIP_ONE_INTERVAL                                      BT_PRINT_CIS_WRN(0x0019)
#define BT_PRINT_CIS_RX_FULL                                                BT_PRINT_CIS_WRN(0x001A)
#define BT_PRINT_CIS_RX_DEAL_IRQ                                            BT_PRINT_CIS_WRN(0x001B)
#define BT_PRINT_CIS_RX_DEAL_EVT_CNT                                        BT_PRINT_CIS_WRN(0x001C)
#define BT_PRINT_CIS_SLAVE_TX_DEAL_IRQ                                      BT_PRINT_CIS_WRN(0x001D)
#define BT_PRINT_CIS_SLAVE_TX_DEAL_EVT_CNT                                  BT_PRINT_CIS_WRN(0x001E)
#define BT_PRINT_CIS_ISOTX_NUM_EXCEED                                       BT_PRINT_CIS_WRN(0x001F)
#define BT_PRINT_CIS_ISO_INTERVAL                                           BT_PRINT_CIS_INF(0x0020)
#define BT_PRINT_CIS_ISO_FRAMING                                            BT_PRINT_CIS_INF(0x0021)
#define BT_PRINT_CIS_REQ_M_SDU                                              BT_PRINT_CIS_INF(0x0022)
#define BT_PRINT_CIS_REQ_S_SDU                                              BT_PRINT_CIS_INF(0x0023)
#define BT_PRINT_CIS_REQ_M_PDU                                              BT_PRINT_CIS_INF(0x0024)
#define BT_PRINT_CIS_REQ_S_PDU                                              BT_PRINT_CIS_INF(0x0025)
#define BT_PRINT_CIS_REQ_M_PHY                                              BT_PRINT_CIS_INF(0x0026)
#define BT_PRINT_CIS_REQ_S_PHY                                              BT_PRINT_CIS_INF(0x0027)
#define BT_PRINT_CIS_REQ_M_BN                                               BT_PRINT_CIS_INF(0x0028)
#define BT_PRINT_CIS_REQ_S_BN                                               BT_PRINT_CIS_INF(0x0029)
#define BT_PRINT_CIS_REQ_M_FT                                               BT_PRINT_CIS_INF(0x002A)
#define BT_PRINT_CIS_REQ_S_FT                                               BT_PRINT_CIS_INF(0x002B)
#define BT_PRINT_CIS_REQ_NSE                                                BT_PRINT_CIS_INF(0x002C)
#define BT_PRINT_CIS_REQ_OFF_MIN                                            BT_PRINT_CIS_INF(0x002D)
#define BT_PRINT_CIS_REQ_OFF_MAX                                            BT_PRINT_CIS_INF(0x002E)
#define BT_PRINT_CIS_REQ_SUB_INTERVAL                                       BT_PRINT_CIS_INF(0x002F)
#define BT_PRINT_CIS_ACCEPT_REQ_OMAX                                        BT_PRINT_CIS_INF(0x0030)
#define BT_PRINT_CIS_ACCEPT_REQ_OMIN                                        BT_PRINT_CIS_INF(0x0031)
#define BT_PRINT_CIS_ACCEPT_REQ_CNT                                         BT_PRINT_CIS_INF(0x0032)
#define BT_PRINT_CIS_CAL_SYNC_DELAY_M_PHY                                   BT_PRINT_CIS_INF(0x0033)
#define BT_PRINT_CIS_CAL_SYNC_DELAY_S_PHY                                   BT_PRINT_CIS_INF(0x0034)
#define BT_PRINT_CIS_CAL_SYNC_DELAY_M_FT                                    BT_PRINT_CIS_INF(0x0035)
#define BT_PRINT_CIS_CAL_SYNC_DELAY_S_FT                                    BT_PRINT_CIS_INF(0x0036)
#define BT_PRINT_CIS_CAL_SYNC_DELAY_M_LATENCY                               BT_PRINT_CIS_INF(0x0037)
#define BT_PRINT_CIS_CAL_SYNC_DELAY_ISO_INTERVAL                            BT_PRINT_CIS_INF(0x0038)
#define BT_PRINT_CIS_CAL_SYNC_DELAY_CIS_NUM                                 BT_PRINT_CIS_INF(0x0039)
#define BT_PRINT_CIS_CAL_SYNC_DELAY_SUB_INTERVAL                            BT_PRINT_CIS_INF(0x003A)
#define BT_PRINT_CIS_CAL_SYNC_DELAY_VAL                                     BT_PRINT_CIS_INF(0x003B)
#define BT_PRINT_CIS_SET_REQ_PARAM_ISO_INTERVAL                             BT_PRINT_CIS_INF(0x003C)
#define BT_PRINT_CIS_SET_REQ_PARAM_SUB_INTERVAL                             BT_PRINT_CIS_INF(0x003D)
#define BT_PRINT_CIS_SET_REQ_PARAM_ACL_INT_US                               BT_PRINT_CIS_INF(0x003E)
#define BT_PRINT_CIS_SET_REQ_PARAM_ISO_INT_US                               BT_PRINT_CIS_INF(0x003F)
#define BT_PRINT_CIS_SET_REQ_PARAM_CIG_SYNC_DELAY                           BT_PRINT_CIS_INF(0x0040)
#define BT_PRINT_CIS_SET_REQ_PARAM_CIS_SYNC_DELAY                           BT_PRINT_CIS_INF(0x0041)
#define BT_PRINT_CIS_SET_REQ_PARAM_OFF_MAX                                  BT_PRINT_CIS_INF(0x0042)
#define BT_PRINT_CIS_SET_REQ_PARAM_OFF_MIN                                  BT_PRINT_CIS_INF(0x0043)
#define BT_PRINT_CIS_CREATE_ACL_INTERVAL                                    BT_PRINT_CIS_INF(0x0044)
#define BT_PRINT_CIS_CREATE_CIS_INTERVAL                                    BT_PRINT_CIS_INF(0x0045)
#define BT_PRINT_CIS_CREATE_CIS_OFFSET                                      BT_PRINT_CIS_INF(0x0046)
#define BT_PRINT_CIS_CREATE_CIS_SYNC_DELAY                                  BT_PRINT_CIS_INF(0x0047)
#define BT_PRINT_CIS_CREATE_CIG_SYNC_DELAY                                  BT_PRINT_CIS_INF(0x0048)
#define BT_PRINT_CIS_ESTABLISH_FAIL                                         BT_PRINT_CIS_DBG(0x0049)
#define BT_PRINT_CIS_SET_REQ_PARAM_CE_CNT                                   BT_PRINT_CIS_DBG(0x004A)
#define BT_PRINT_CIS_RELEASE_LINK                                           BT_PRINT_CIS_DBG(0x004B)
#define BT_PRINT_CIS_FREE_CIG_ID                                            BT_PRINT_CIS_DBG(0x004C)
#define BT_PRINT_CIS_FREE_CIS_ID                                            BT_PRINT_CIS_DBG(0x004D)
#define BT_PRINT_CIG_FREE_CIG_ID                                            BT_PRINT_CIS_DBG(0x004E)
#define BT_PRINT_CIS_RESUME                                                 BT_PRINT_CIS_ASSERT(0x004F)
#define BT_PRINT_CIS_XFER_CFG_HDL                                           BT_PRINT_CIS_ERR(0x0050)
#define BT_PRINT_CIS_XFER_CFG_NO_DEFAULT_LINK                               BT_PRINT_CIS_ERR(0x0051)
#define BT_PRINT_CIS_FT_INIT_TX_ERR_COUNTER                                 BT_PRINT_CIS_ERR(0x0052)
#define BT_PRINT_CIS_FT_INIT_TX_ERR_MIN                                     BT_PRINT_CIS_ERR(0x0053)
#define BT_PRINT_CIS_FT_INIT_RX_ERR_COUNTER                                 BT_PRINT_CIS_ERR(0x0054)
#define BT_PRINT_CIS_FT_INIT_RX_ERR_MIN                                     BT_PRINT_CIS_ERR(0x0055)
#define BT_PRINT_CIS_RX_PKD_CRC_CIS_EVT                                     BT_PRINT_CIS_DBG(0x0056)
#define BT_PRINT_CIS_RX_PKD_CRC_SUB_EVT                                     BT_PRINT_CIS_DBG(0x0057)
#define BT_PRINT_CIS_RX_PKD_TO_CIS_EVT                                      BT_PRINT_CIS_DBG(0x0058)
#define BT_PRINT_CIS_RX_PKD_TO_SUB_EVT                                      BT_PRINT_CIS_DBG(0x0059)
#define BT_PRINT_CIS_XFER_CLOSE                                             BT_PRINT_CIS_DBG(0x005A)
#define BT_PRINT_CIS_XFER_CFG_INF                                           BT_PRINT_CIS_DBG(0x005B)
#define BT_PRINT_CIS_SEND_REPORT_NULL                                       BT_PRINT_CIS_DBG(0x005C)
#define BT_PRINT_CIS_RX_PKT_BUF_RX_REPORT_CLOSE                             BT_PRINT_CIS_DBG(0x005D)

//ADV
#define BT_PRINT_ADV_ERR(x)                         ((x) | BT_PRINT_ID_ADV | BT_PRINT_LVL_ERROR)
#define BT_PRINT_ADV_WRN(x)                         ((x) | BT_PRINT_ID_ADV | BT_PRINT_LVL_WARNING)
#define BT_PRINT_ADV_INF(x)                         ((x) | BT_PRINT_ID_ADV | BT_PRINT_LVL_INFO)
#define BT_PRINT_ADV_DBG(x)                         ((x) | BT_PRINT_ID_ADV | BT_PRINT_LVL_DEBUG)
#define BT_PRINT_ADV_ASSERT(x)                      ((x) | BT_PRINT_ID_ADV | BT_PRINT_LVL_ASSERT)
#define BT_PRINT_ADV_HEX(x)                         ((x) | BT_PRINT_ID_ADV | BT_PRINT_LVL_DEBUG | BT_PRINT_HEX_MISC)
#define BT_PRINT_ADV_CONN_EXIST                                             BT_PRINT_ADV_ERR(0x0000)
#define BT_PRINT_ADV_C                                                      BT_PRINT_ADV_ERR(0x0001)
#define BT_PRINT_ADV_LOC                                                    BT_PRINT_ADV_ERR(0x0002)
#define BT_PRINT_ADV_TIFS                                                   BT_PRINT_ADV_ERR(0x0003)
#define BT_PRINT_ADV_RL                                                     BT_PRINT_ADV_ERR(0x0004)
#define BT_PRINT_ADV_TO                                                     BT_PRINT_ADV_WRN(0x0005)
#define BT_PRINT_ADV_RX                                                     BT_PRINT_ADV_ASSERT(0x0006)
#define BT_PRINT_ADV_RSP                                                    BT_PRINT_ADV_ASSERT(0x0007)
#define BT_PRINT_ADV_R                                                      BT_PRINT_ADV_ASSERT(0x0008)
#define BT_PRINT_ADV_TX                                                     BT_PRINT_ADV_ASSERT(0x0009)
#define BT_PRINT_ADV_ENABLE_LOCAL_ADDR                                      BT_PRINT_ADV_HEX(0x000A)
#define BT_PRINT_ADV_ENABLE_LOCAL_ADDR1                                     BT_PRINT_ADV_HEX(0x000B)

//SCAN
#define BT_PRINT_SCAN_ERR(x)                         ((x) | BT_PRINT_ID_SCAN | BT_PRINT_LVL_ERROR)
#define BT_PRINT_SCAN_WRN(x)                         ((x) | BT_PRINT_ID_SCAN | BT_PRINT_LVL_WARNING)
#define BT_PRINT_SCAN_INF(x)                         ((x) | BT_PRINT_ID_SCAN | BT_PRINT_LVL_INFO)
#define BT_PRINT_SCAN_DBG(x)                         ((x) | BT_PRINT_ID_SCAN | BT_PRINT_LVL_DEBUG)
#define BT_PRINT_SCAN_ASSERT(x)                      ((x) | BT_PRINT_ID_SCAN | BT_PRINT_LVL_ASSERT)
#define BT_PRINT_SCAN_HEX(x)                         ((x) | BT_PRINT_ID_SCAN | BT_PRINT_LVL_DEBUG | BT_PRINT_HEX_MISC)
#define BT_PRINT_LE_CONN_EXIST                                              BT_PRINT_SCAN_ERR(0x0000)
#define BT_PRINT_LE_CONN_EXIST2                                             BT_PRINT_SCAN_ERR(0x0001)
#define BT_PRINT_LE_CONN_LOC                                                BT_PRINT_SCAN_ERR(0x0002)
#define BT_PRINT_SCAN_SET_DIR                                               BT_PRINT_SCAN_ERR(0x0003)
#define BT_PRINT_SCAN_SET_WL                                                BT_PRINT_SCAN_ERR(0x0004)
#define BT_PRINT_SCAN_SNM                                                   BT_PRINT_SCAN_ERR(0x0005)
#define BT_PRINT_SCAN_W4_ADV_RX                                             BT_PRINT_SCAN_ERR(0x0006)
#define BT_PRINT_SCAN_W4_EXT_ADV_2RX                                        BT_PRINT_SCAN_ERR(0x0007)
#define BT_PRINT_SCAN_W4_TX_FINI                                            BT_PRINT_SCAN_ERR(0x0008)
#define BT_PRINT_SCAN_RSP_W4_RX_FINI                                        BT_PRINT_SCAN_ERR(0x0009)
#define BT_PRINT_SCAN_W4_EXT_AUX_RSP_FINI                                   BT_PRINT_SCAN_ERR(0x000A)
#define BT_PRINT_SCAN_W4_CONN_IND_FINI                                      BT_PRINT_SCAN_ERR(0x000B)
#define BT_PRINT_SCAN_TIFS_TIMEOUT                                          BT_PRINT_SCAN_WRN(0x000C)
#define BT_PRINT_INITIATOR_PKT_RL                                           BT_PRINT_SCAN_INF(0x000D)
#define BT_PRINT_INITIATOR_PKT_NOT_MATCH                                    BT_PRINT_SCAN_INF(0x000E)
#define BT_PRINT_SCAN_RX_PKT_RL_E                                           BT_PRINT_SCAN_INF(0x000F)
#define BT_PRINT_SCAN_RX_PKT_RL_2                                           BT_PRINT_SCAN_INF(0x0010)
#define BT_PRINT_SCAN_RX_PKT_DEF_TYPE                                       BT_PRINT_SCAN_DBG(0x0011)
#define BT_PRINT_SCAN_RESUME                                                BT_PRINT_SCAN_ASSERT(0x0012)
#define BT_PRINT_SCAN_EXT_TARGET_ADDR                                       BT_PRINT_SCAN_HEX(0x0013)
#define BT_PRINT_SCAN_EXT_LOCAL_ADDR                                        BT_PRINT_SCAN_HEX(0x0014)
#define BT_PRINT_SCAN_LOCAL_ADDR                                            BT_PRINT_SCAN_HEX(0x0015)

//LL TEST
#define BT_PRINT_LL_TEST_ERR(x)                         ((x) | BT_PRINT_ID_LL_TEST | BT_PRINT_LVL_ERROR)
#define BT_PRINT_LL_TEST_WRN(x)                         ((x) | BT_PRINT_ID_LL_TEST | BT_PRINT_LVL_WARNING)
#define BT_PRINT_LL_TEST_INF(x)                         ((x) | BT_PRINT_ID_LL_TEST | BT_PRINT_LVL_INFO)
#define BT_PRINT_LL_TEST_DBG(x)                         ((x) | BT_PRINT_ID_LL_TEST | BT_PRINT_LVL_DEBUG)
#define BT_PRINT_LL_TEST_HEX(x)                         ((x) | BT_PRINT_ID_LL_TEST | BT_PRINT_LVL_INFO | BT_PRINT_HEX_MISC)
#define BT_PRINT_TEST_ALREADY_END                                           BT_PRINT_LL_TEST_WRN(0x0000)
#define BT_PRINT_TEST_CTE_RX_STATUS                                         BT_PRINT_LL_TEST_INF(0x0001)
#define BT_PRINT_TEST_CTE_INIT_ATTENA_NUM                                   BT_PRINT_LL_TEST_INF(0x0002)
#define BT_PRINT_TEST_LE_TX_I                                               BT_PRINT_LL_TEST_INF(0x0003)
#define BT_PRINT_TEST_LE_TX_L                                               BT_PRINT_LL_TEST_INF(0x0004)
#define BT_PRINT_TEST_AOA_DBG_RX_LEN                                        BT_PRINT_LL_TEST_INF(0x0005)
#define BT_PRINT_TEST_AOA_DBG_IQ_DATA_IDX                                   BT_PRINT_LL_TEST_INF(0x0006)
#define BT_PRINT_TEST_AOA_DBG_IQ_DATA_VAL                                   BT_PRINT_LL_TEST_INF(0x0007)
#define BT_PRINT_TEST_CTE_REG_CTRL                                          BT_PRINT_LL_TEST_INF(0x0008)
#define BT_PRINT_TEST_CTE_REG_RX_STA0                                       BT_PRINT_LL_TEST_INF(0x0009)
#define BT_PRINT_TEST_CTE_REG_RX_STA1                                       BT_PRINT_LL_TEST_INF(0x000A)
#define BT_PRINT_TEST_CTE_REG_TIME_CTRL                                     BT_PRINT_LL_TEST_INF(0x000B)
#define BT_PRINT_TEST_CTE_REG_BF_STATUS                                     BT_PRINT_LL_TEST_INF(0x000C)
#define BT_PRINT_TEST_CTE_REG_SWAP_WRAP                                     BT_PRINT_LL_TEST_INF(0x000D)
#define BT_PRINT_TEST_CTE_REG_SWITCH_PATTERN                                BT_PRINT_LL_TEST_INF(0x000E)
#define BT_PRINT_TEST_CTE_REG_CLEAR_PATTERN                                 BT_PRINT_LL_TEST_INF(0x000F)
#define BT_PRINT_TEST_CTE_REG_TIFS_OFF                                      BT_PRINT_LL_TEST_INF(0x0010)
#define BT_PRINT_TEST_CTE_ATTENA_ID                                         BT_PRINT_LL_TEST_HEX(0x0011)
#define BT_PRINT_TEST_AOA_DBG_RX_IQ                                         BT_PRINT_LL_TEST_HEX(0x0012)

//LL CONN
#define BT_PRINT_LL_CONN_ERR(x)                         ((x) | BT_PRINT_ID_LL_CONN | BT_PRINT_LVL_ERROR)
#define BT_PRINT_LL_CONN_WRN(x)                         ((x) | BT_PRINT_ID_LL_CONN | BT_PRINT_LVL_WARNING)
#define BT_PRINT_LL_CONN_INF(x)                         ((x) | BT_PRINT_ID_LL_CONN | BT_PRINT_LVL_INFO)
#define BT_PRINT_LL_CONN_DBG(x)                         ((x) | BT_PRINT_ID_LL_CONN | BT_PRINT_LVL_DEBUG)
#define BT_PRINT_LL_CONN_ASSERT(x)                      ((x) | BT_PRINT_ID_LL_CONN | BT_PRINT_LVL_ASSERT)
#define BT_PRINT_LL_CONN_TXRX_HEX(x)                    ((x) | BT_PRINT_ID_LL_CONN | BT_PRINT_LVL_INFO | BT_PRINT_HEX_LL)
#define BT_PRINT_LL_CONN_HEX(x)                         ((x) | BT_PRINT_ID_LL_CONN | BT_PRINT_LVL_INFO | BT_PRINT_HEX_MISC)
#define BT_PRINT_REJECT_IND                                                 BT_PRINT_LL_CONN_ERR(0x0000)
#define BT_PRINT_REJECT_EXT_OPCODE                                          BT_PRINT_LL_CONN_ERR(0x0001)
#define BT_PRINT_REJECT_EXT_ERR_CODE                                        BT_PRINT_LL_CONN_ERR(0x0002)
#define BT_PRINT_UNKNOWN_TYPE                                               BT_PRINT_LL_CONN_ERR(0x0003)
#define BT_PRINT_Q_REL                                                      BT_PRINT_LL_CONN_ERR(0x0004)
#define BT_PRINT_PRE_TX_REL                                                 BT_PRINT_LL_CONN_ERR(0x0005)
#define BT_PRINT_TX_REL                                                     BT_PRINT_LL_CONN_ERR(0x0006)
#define BT_PRINT_LL_CONN_RX_MIC_ERR_CE_CNT                                  BT_PRINT_LL_CONN_ERR(0x0007)
#define BT_PRINT_LL_CONN_RX_MIC_ERR_PKT_CNT                                 BT_PRINT_LL_CONN_ERR(0x0008)
#define BT_PRINT_LL_CONN_CPHY_ERR                                           BT_PRINT_LL_CONN_ERR(0x0009)
#define BT_PRINT_LL_CONN_S_CRC                                              BT_PRINT_LL_CONN_ERR(0x000A)
#define BT_PRINT_LL_CONN_CPHY2_ERR                                          BT_PRINT_LL_CONN_ERR(0x000B)
#define BT_PRINT_LL_CONN_S_TO                                               BT_PRINT_LL_CONN_ERR(0x000C)
#define BT_PRINT_LL_CONN_RX_FINISH_IRQ                                      BT_PRINT_LL_CONN_ERR(0x000D)
#define BT_PRINT_LL_CONN_RX_FINISH_CECNT                                    BT_PRINT_LL_CONN_ERR(0x000E)
#define BT_PRINT_LL_CONN_TX_FINISH_IRQ                                      BT_PRINT_LL_CONN_ERR(0x000F)
#define BT_PRINT_LL_CONN_TX_FINISH_CECNT                                    BT_PRINT_LL_CONN_ERR(0x0010)
#define BT_PRINT_LL_SW_TX_USER_DATA_BUSY1                                   BT_PRINT_LL_CONN_ERR(0x0011)
#define BT_PRINT_LL_SW_TX_USER_DATA_BUSY2                                   BT_PRINT_LL_CONN_ERR(0x0012)
#define BT_PRINT_LL_SW_WHEN_USER_OUT_NOT_EMPTY                              BT_PRINT_LL_CONN_ERR(0x0013)
#define BT_PRINT_LL_SW_DATA_NO_ENOUGH                                       BT_PRINT_LL_CONN_ERR(0x0014)
#define BT_PRINT_LL_SW_NO_RES                                               BT_PRINT_LL_CONN_ERR(0x0015)
#define BT_PRINT_LL_CH_M_BUSY                                               BT_PRINT_LL_CONN_WRN(0x0016)
#define BT_PRINT_LL_CH_INSTANT_PASSED                                       BT_PRINT_LL_CONN_WRN(0x0017)
#define BT_PRINT_LL_SKIP_CE_CNT                                             BT_PRINT_LL_CONN_WRN(0x0018)
#define BT_PRINT_LL_SET_CE                                                  BT_PRINT_LL_CONN_WRN(0x0019)
#define BT_PRINT_LL_TIFS_TIMEOUT                                            BT_PRINT_LL_CONN_WRN(0x001A)
#define BT_PRINT_LL_RELEASE_CONN_LINK_T1                                    BT_PRINT_LL_CONN_INF(0x001B)
#define BT_PRINT_LL_RELEASE_CONN_LINK_T2                                    BT_PRINT_LL_CONN_INF(0x001C)
#define BT_PRINT_LL_SCA                                                     BT_PRINT_LL_CONN_INF(0x001D)
#define BT_PRINT_LL_UPDATE_IND                                              BT_PRINT_LL_CONN_DBG(0x001E)
#define BT_PRINT_LL_CONNECTED                                               BT_PRINT_LL_CONN_DBG(0x001F)
#define BT_PRINT_LL_RESPONSE_TIMEOUT_OPCODE0                                BT_PRINT_LL_CONN_DBG(0x0020)
#define BT_PRINT_LL_RESPONSE_TIMEOUT_OPCODE1                                BT_PRINT_LL_CONN_DBG(0x0021)
#define BT_PRINT_LL_REACH_UPDATE_CECNT                                      BT_PRINT_LL_CONN_DBG(0x0022)
#define BT_PRINT_LL_SENT_SWITCH_INFO_BTCLK                                  BT_PRINT_LL_CONN_DBG(0x0023)
#define BT_PRINT_LL_SENT_SWITCH_INFO_BITCNT                                 BT_PRINT_LL_CONN_DBG(0x0024)
#define BT_PRINT_LL_SENT_SWITCH_INFO_WINEXT_US                              BT_PRINT_LL_CONN_DBG(0x0025)
#define BT_PRINT_LL_OUT_TX                                                  BT_PRINT_LL_CONN_DBG(0x0026)
#define BT_PRINT_LL_OUT_PRE                                                 BT_PRINT_LL_CONN_DBG(0x0027)
#define BT_PRINT_LL_OUT                                                     BT_PRINT_LL_CONN_DBG(0x0028)
#define BT_PRINT_LL_SWITCH_LLTX                                             BT_PRINT_LL_CONN_DBG(0x0029)
#define BT_PRINT_LL_SWITCH_SLAVE_CALC_BTCLK                                 BT_PRINT_LL_CONN_DBG(0x002A)
#define BT_PRINT_LL_SWITCH_SLAVE_CALC_BITCNT                                BT_PRINT_LL_CONN_DBG(0x002B)
#define BT_PRINT_LL_SWITCH_SLAVE_CALC_CLKOFF                                BT_PRINT_LL_CONN_DBG(0x002C)
#define BT_PRINT_LL_SWITCH_SLAVE_CALC_INTRASLOT_OFF                         BT_PRINT_LL_CONN_DBG(0x002D)
#define BT_PRINT_LL_SWITCH_TWS_START                                        BT_PRINT_LL_CONN_DBG(0x002E)
#define BT_PRINT_LL_NOT_NULL                                                BT_PRINT_LL_CONN_ASSERT(0x002F)
#define BT_PRINT_LL_LINK_NULL                                               BT_PRINT_LL_CONN_ASSERT(0x0030)
#define BT_PRINT_LL_CONN_R                                                  BT_PRINT_LL_CONN_ASSERT(0x0031)
#define BT_PRINT_LL_CONN_LLTX                                               BT_PRINT_LL_CONN_TXRX_HEX(0x0032)
#define BT_PRINT_LL_CONN_LLRX                                               BT_PRINT_LL_CONN_TXRX_HEX(0x0033)
#define BT_PRINT_LL_CONN_AES_ENCRYPTION_TEST                                BT_PRINT_LL_CONN_HEX(0x0034)
#define BT_PRINT_LL_CONN_AES_CCM_ENCRY                                      BT_PRINT_LL_CONN_HEX(0x0035)
#define BT_PRINT_LL_CONN_AES_CCM_DECRY                                      BT_PRINT_LL_CONN_HEX(0x0036)

//LL TWS
#define BT_PRINT_LL_TWS_ERR(x)                         ((x) | BT_PRINT_ID_LL_TWS | BT_PRINT_LVL_ERROR)
#define BT_PRINT_LL_TWS_WRN(x)                         ((x) | BT_PRINT_ID_LL_TWS | BT_PRINT_LVL_WARNING)
#define BT_PRINT_LL_TWS_INF(x)                         ((x) | BT_PRINT_ID_LL_TWS | BT_PRINT_LVL_INFO)
#define BT_PRINT_LL_TWS_DBG(x)                         ((x) | BT_PRINT_ID_LL_TWS | BT_PRINT_LVL_DEBUG)
#define BT_PRINT_LL_TWS_ASSERT(x)                      ((x) | BT_PRINT_ID_LL_TWS | BT_PRINT_LVL_ASSERT)
#define BT_PRINT_TWS_CONN_LEN                                               BT_PRINT_LL_TWS_ERR(0x0000)
#define BT_PRINT_TWS_SCAN_W4_ADV_RX                                         BT_PRINT_LL_TWS_ERR(0x0001)
#define BT_PRINT_TWS_SCAN_W4_TX_FINI                                        BT_PRINT_LL_TWS_ERR(0x0002)
#define BT_PRINT_TWS_A_TO                                                   BT_PRINT_LL_TWS_WRN(0x0003)
#define BT_PRINT_TWS_SCAN_TIMEOUT                                           BT_PRINT_LL_TWS_WRN(0x0004)
#define BT_PRINT_TWS_ADV_BITCNT                                             BT_PRINT_LL_TWS_DBG(0x0005)
#define BT_PRINT_TWS_ADV_CONN                                               BT_PRINT_LL_TWS_DBG(0x0006)
#define BT_PRINT_TWS_ADV_RESUME                                             BT_PRINT_LL_TWS_ASSERT(0x0007)
#define BT_PRINT_TWS_ADV_TX_PKA                                             BT_PRINT_LL_TWS_ASSERT(0x0008)
#define BT_PRINT_TWS_ADV_RX                                                 BT_PRINT_LL_TWS_ASSERT(0x0009)
#define BT_PRINT_TWS_SCAN_RESUME                                            BT_PRINT_LL_TWS_ASSERT(0x000A)

//EXT ADV
#define BT_PRINT_EXT_ADV_ERR(x)                         ((x) | BT_PRINT_ID_EXT_ADV | BT_PRINT_LVL_ERROR)
#define BT_PRINT_EXT_ADV_WRN(x)                         ((x) | BT_PRINT_ID_EXT_ADV | BT_PRINT_LVL_WARNING)
#define BT_PRINT_EXT_ADV_INF(x)                         ((x) | BT_PRINT_ID_EXT_ADV | BT_PRINT_LVL_INFO)
#define BT_PRINT_EXT_ADV_DBG(x)                         ((x) | BT_PRINT_ID_EXT_ADV | BT_PRINT_LVL_DEBUG)
#define BT_PRINT_EXT_ADV_ASSERT(x)                      ((x) | BT_PRINT_ID_EXT_ADV | BT_PRINT_LVL_ASSERT)
#define BT_PRINT_EXT_ADV_CRC                                                BT_PRINT_EXT_ADV_ERR(0x0000)
#define BT_PRINT_EXT_ADV_LOCAL_ADDR_NOT_MATCH                               BT_PRINT_EXT_ADV_ERR(0x0001)
#define BT_PRINT_EXT_ADV_TIFS_ABORT                                         BT_PRINT_EXT_ADV_ERR(0x0002)
#define BT_PRINT_EXT_ADV_PRI_LEN                                            BT_PRINT_EXT_ADV_INF(0x0003)
#define BT_PRINT_EXT_ADV_PRI_TOTAL_LEN                                      BT_PRINT_EXT_ADV_INF(0x0004)
#define BT_PRINT_EXT_ADV_TX                                                 BT_PRINT_EXT_ADV_ASSERT(0x0005)
#define BT_PRINT_EXT_ADV_RSP                                                BT_PRINT_EXT_ADV_ASSERT(0x0006)

//ISO
#define BT_PRINT_ISO_ERR(x)                         ((x) | BT_PRINT_ID_ISO | BT_PRINT_LVL_ERROR)
#define BT_PRINT_ISO_WRN(x)                         ((x) | BT_PRINT_ID_ISO | BT_PRINT_LVL_WARNING)
#define BT_PRINT_ISO_INF(x)                         ((x) | BT_PRINT_ID_ISO | BT_PRINT_LVL_INFO)
#define BT_PRINT_ISO_DBG(x)                         ((x) | BT_PRINT_ID_ISO | BT_PRINT_LVL_DEBUG)
#define BT_PRINT_ALLOC_P_CIS_RX_NODE_FAIL                                   BT_PRINT_ISO_ERR(0x0000)
#define BT_PRINT_LOST_CMPLT_SEGMENT                                         BT_PRINT_ISO_WRN(0x0001)
#define BT_PRINT_TODO_ISOAL_BIS                                             BT_PRINT_ISO_WRN(0x0002)

//MEM
#define BT_PRINT_MEM_ERR(x)                         ((x) | BT_PRINT_ID_MEM | BT_PRINT_LVL_ERROR)
#define BT_PRINT_MEM_WRN(x)                         ((x) | BT_PRINT_ID_MEM | BT_PRINT_LVL_WARNING)
#define BT_PRINT_MEM_INF(x)                         ((x) | BT_PRINT_ID_MEM | BT_PRINT_LVL_INFO)
#define BT_PRINT_MEM_DBG(x)                         ((x) | BT_PRINT_ID_MEM | BT_PRINT_LVL_DEBUG)
#define BT_PRINT_MEM_ADD_TYPE                                               BT_PRINT_MEM_INF(0x0000)
#define BT_PRINT_MEM_ADD_BLOCK_CNT                                          BT_PRINT_MEM_INF(0x0001)
#define BT_PRINT_MEM_SUB_TYPE                                               BT_PRINT_MEM_INF(0x0002)
#define BT_PRINT_MEM_SUB_BLOCK_CNT                                          BT_PRINT_MEM_INF(0x0003)
#define BT_PRINT_MEM_DUMP_DBG_INFO_BLOCK_CNT                                BT_PRINT_MEM_INF(0x0004)
#define BT_PRINT_MEM_DUMP_DBG_INFO_BLOCK_CNT_PEAK                           BT_PRINT_MEM_INF(0x0005)
#define BT_PRINT_MEM_DUMP_DBG_INFO_FREE_ELEMENT                             BT_PRINT_MEM_INF(0x0006)
#define BT_PRINT_MEM_DUMP_DBG_INFO_FREE_ELEMENT_PEAK                        BT_PRINT_MEM_INF(0x0007)
#define BT_PRINT_MEM_DUMP_DBG_INFO_CUR_USED_SPACE                           BT_PRINT_MEM_INF(0x0008)
#define BT_PRINT_MEM_DUMP_DBG_INFO_MAX_USED_SPACE                           BT_PRINT_MEM_INF(0x0009)

//SCH
#define BT_PRINT_SCH_ERR(x)                         ((x) | BT_PRINT_ID_SCH | BT_PRINT_LVL_ERROR)
#define BT_PRINT_SCH_WRN(x)                         ((x) | BT_PRINT_ID_SCH | BT_PRINT_LVL_WARNING)
#define BT_PRINT_SCH_INF(x)                         ((x) | BT_PRINT_ID_SCH | BT_PRINT_LVL_INFO)
#define BT_PRINT_SCH_DBG(x)                         ((x) | BT_PRINT_ID_SCH | BT_PRINT_LVL_DEBUG)
#define BT_PRINT_SCH_ASSERT(x)                      ((x) | BT_PRINT_ID_SCH | BT_PRINT_LVL_ASSERT)
#define BT_PRINT_SCH_CHANGE_NODE_FREE                                       BT_PRINT_SCH_ERR(0x0000)
#define BT_PRINT_STANDBY_DEF                                                BT_PRINT_SCH_ERR(0x0001)
#define BT_PRINT_STANDBY_R                                                  BT_PRINT_SCH_ERR(0x0002)
#define BT_PRINT_APLL                                                       BT_PRINT_SCH_ERR(0x0003)
#define BT_PRINT_APLL_FINISH                                                BT_PRINT_SCH_DBG(0x0004)
#define BT_PRINT_LOW_POWER_STATE                                            BT_PRINT_SCH_ASSERT(0x0005)
#define BT_PRINT_AUTO_WAKEUP_WAIT_START                                     BT_PRINT_SCH_DBG(0x0006)
#define BT_PRINT_AUTO_WAKEUP_STARTED                                        BT_PRINT_SCH_DBG(0x0007)

//TIM
#define BT_PRINT_TIM_ERR(x)                         ((x) | BT_PRINT_ID_TIM | BT_PRINT_LVL_ERROR)
#define BT_PRINT_TIM_WRN(x)                         ((x) | BT_PRINT_ID_TIM | BT_PRINT_LVL_WARNING)
#define BT_PRINT_TIM_INF(x)                         ((x) | BT_PRINT_ID_TIM | BT_PRINT_LVL_INFO)
#define BT_PRINT_TIM_DBG(x)                         ((x) | BT_PRINT_ID_TIM | BT_PRINT_LVL_DEBUG)
#define BT_PRINT_TIM_BT_NULL                                                BT_PRINT_TIM_ERR(0x0000)
#define BT_PRINT_TIM_US_NULL                                                BT_PRINT_TIM_ERR(0x0001)

//PHY
#define BT_PRINT_PHY_ERR(x)                         ((x) | BT_PRINT_ID_PHY | BT_PRINT_LVL_ERROR)
#define BT_PRINT_PHY_WRN(x)                         ((x) | BT_PRINT_ID_PHY | BT_PRINT_LVL_WARNING)
#define BT_PRINT_PHY_INF(x)                         ((x) | BT_PRINT_ID_PHY | BT_PRINT_LVL_INFO)
#define BT_PRINT_PHY_DBG(x)                         ((x) | BT_PRINT_ID_PHY | BT_PRINT_LVL_DEBUG)
#define BT_PRINT_RF_DECAP_CH0_NUM                                           BT_PRINT_PHY_DBG(0x0000)
#define BT_PRINT_RF_RECAL_CH_NUM                                            BT_PRINT_PHY_DBG(0x0001)
#define BT_PRINT_RF_RECAL_CH_DECAP                                          BT_PRINT_PHY_DBG(0x0002)
#define BT_PRINT_MODEM_NO_MEM                                               BT_PRINT_PHY_ERR(0x0003)
#define BT_PRINT_RF_RC                                                      BT_PRINT_PHY_DBG(0x0004)
#define BT_PRINT_RF_APLL_DECAP_CHN                                          BT_PRINT_PHY_DBG(0x0005)
#define BT_PRINT_RF_APLL_DECAP_VAL                                          BT_PRINT_PHY_DBG(0x0006)
#define BT_PRINT_RF_APLL_RECALIBRATION_CHN0                                 BT_PRINT_PHY_DBG(0x0008)
#define BT_PRINT_RF_APLL_FIX_DECAP0_FROM                                    BT_PRINT_PHY_DBG(0x0009)
#define BT_PRINT_RF_APLL_FIX_DECAP0_TO                                      BT_PRINT_PHY_DBG(0x000A)
#define BT_PRINT_RF_APLL_RECALIBRATION_CHN_IDX                              BT_PRINT_PHY_DBG(0x000B)
#define BT_PRINT_RF_APLL_RECALIBRATION_CHN_VAL                              BT_PRINT_PHY_DBG(0x000C)
#define BT_PRINT_RF_APLL_FIX_DECAP_CHN                                      BT_PRINT_PHY_DBG(0x000D)
#define BT_PRINT_RF_APLL_FIX_DECAP_CHN_FROM                                 BT_PRINT_PHY_DBG(0x000E)
#define BT_PRINT_RF_APLL_FIX_DECAP_CHN_TO                                   BT_PRINT_PHY_DBG(0x000F)
#define BT_PRINT_RF_APLL_SKIP_TO_DECAP                                      BT_PRINT_PHY_DBG(0x0010)
#define BT_PRINT_RF_APLL_SKIP_TO_DECAP_FROM                                 BT_PRINT_PHY_DBG(0x0011)
#define BT_PRINT_RF_AVDD_IF                                                 BT_PRINT_PHY_DBG(0x0012)
#define BT_PRINT_RF_CHIPID                                                  BT_PRINT_PHY_DBG(0x0013)
#define BT_PRINT_RF_POWER_TABLE_VER                                         BT_PRINT_PHY_DBG(0x0014)
#define BT_PRINT_RF_POWER_LEVEL_IDX                                         BT_PRINT_PHY_DBG(0x0015)
#define BT_PRINT_RF_POWER_LEVEL_VAL                                         BT_PRINT_PHY_DBG(0x0016)

// MSG
#define BT_PRINT_MSG_ERR(x)                         ((x) | BT_PRINT_ID_MSG | BT_PRINT_LVL_ERROR)
#define BT_PRINT_MSG_WRN(x)                         ((x) | BT_PRINT_ID_MSG | BT_PRINT_LVL_WARNING)
#define BT_PRINT_MSG_INF(x)                         ((x) | BT_PRINT_ID_MSG | BT_PRINT_LVL_INFO)
#define BT_PRINT_MSG_DBG(x)                         ((x) | BT_PRINT_ID_MSG | BT_PRINT_LVL_DEBUG)
#define BT_PRINT_MAINCPU_UNKNOWN_MSG_TYPE                                   BT_PRINT_MSG_ERR(0x0000)
#define BT_PRINT_HCI_RECV_BUF_NULL                                          BT_PRINT_MSG_ERR(0x0001)
#define BT_PRINT_BTNRX0_RAM_RECV_HEAD                                       BT_PRINT_MSG_ERR(0x0002)
#define BT_PRINT_BTNRX0_RAM_RECV_TMP_HEAD                                   BT_PRINT_MSG_ERR(0x0003)
#define BT_PRINT_BTNRX0_RAM_RECV_TAIL                                       BT_PRINT_MSG_ERR(0x0004)
#define BT_PRINT_BTNRX0_RAM_RECV_TMP_TAIL                                   BT_PRINT_MSG_ERR(0x0005)
#define BT_PRINT_HCI_SEND_BUF_NULL                                          BT_PRINT_MSG_ERR(0x0006)
#define BT_PRINT_NTX_RAM_TYPE                                               BT_PRINT_MSG_ERR(0x0007)
#define BT_PRINT_NTX_RAM_LEN                                                BT_PRINT_MSG_ERR(0x0008)
#define BT_PRINT_DHCHK_NO_RAM                                               BT_PRINT_MSG_ERR(0x0009)
#define BT_PRINT_REQ_PUBLIC_KEY                                             BT_PRINT_MSG_INF(0x000A)
#define BT_PRINT_UNKNOWN_MAILBOX_ID                                         BT_PRINT_MSG_ERR(0x000B)

// CHN SCAN
#define BT_PRINT_CHN_SCAN_ERR(x)                         ((x) | BT_PRINT_ID_CHN_SCAN | BT_PRINT_LVL_ERROR)
#define BT_PRINT_CHN_SCAN_WRN(x)                         ((x) | BT_PRINT_ID_CHN_SCAN | BT_PRINT_LVL_WARNING)
#define BT_PRINT_CHN_SCAN_INF(x)                         ((x) | BT_PRINT_ID_CHN_SCAN | BT_PRINT_LVL_INFO)
#define BT_PRINT_CHN_SCAN_DBG(x)                         ((x) | BT_PRINT_ID_CHN_SCAN | BT_PRINT_LVL_DEBUG)
#define BT_PRINT_CHN_SCAN_ASSERT(x)                      ((x) | BT_PRINT_ID_CHN_SCAN | BT_PRINT_LVL_ASSERT)
#define BT_PRINT_CHN_SCAN_HEX(x)                         ((x) | BT_PRINT_ID_CHN_SCAN | BT_PRINT_LVL_INFO | BT_PRINT_HEX_MISC)
#define BT_PRINT_CHN_SCAN_WIFI_INTF                                         BT_PRINT_CHN_SCAN_HEX(0x0000)
#define BT_PRINT_CHN_SCAN_WIFI_SORT                                         BT_PRINT_CHN_SCAN_HEX(0x0001)
#define BT_PRINT_CHN_SCAN_1ST_NEW_WIFI                                      BT_PRINT_CHN_SCAN_DBG(0x0002)
#define BT_PRINT_CHN_SCAN_WIFI_ASSERT_CNT                                   BT_PRINT_CHN_SCAN_HEX(0x0003)
#define BT_PRINT_CHN_SCAN_WIFI_ASSERT_PEAK                                  BT_PRINT_CHN_SCAN_HEX(0x0004)
#define BT_PRINT_CHN_SCAN_WIFI_PEAK_CURR                                    BT_PRINT_CHN_SCAN_DBG(0x0005)
#define BT_PRINT_CHN_SCAN_WIFI_PEAK_CLR_L                                   BT_PRINT_CHN_SCAN_DBG(0x0006)
#define BT_PRINT_CHN_SCAN_WIFI_PEAK_CLR_R                                   BT_PRINT_CHN_SCAN_DBG(0x0007)
#define BT_PRINT_CHN_SCAN_CLR_MIN_WIFI_ASSERT                               BT_PRINT_CHN_SCAN_DBG(0x0008)
#define BT_PRINT_CHN_SCAN_ADJ_WIFI_ASSERT                                   BT_PRINT_CHN_SCAN_DBG(0x0009)
#define BT_PRINT_CHN_SCAN_ADD_TO_OLD_WIFI                                   BT_PRINT_CHN_SCAN_DBG(0x000A)
#define BT_PRINT_CHN_SCAN_CLEAR_OLD_WIFI                                    BT_PRINT_CHN_SCAN_DBG(0x000B)
#define BT_PRINT_CHN_SCAN_WIFI_ASSERT_RESULT                                BT_PRINT_CHN_SCAN_DBG(0x000C)
#define BT_PRINT_CHN_SCAN_BGRSSI_REALTIME                                   BT_PRINT_CHN_SCAN_HEX(0x000D)
#define BT_PRINT_CHN_SCAN_BGRSSI_REALTIME_AV                                BT_PRINT_CHN_SCAN_DBG(0x000E)
#define BT_PRINT_CHN_SCAN_BGRSSI_UP_DEAL                                    BT_PRINT_CHN_SCAN_HEX(0x000F)
#define BT_PRINT_CHN_SCAN_BGRPT_REALTIME                                    BT_PRINT_CHN_SCAN_HEX(0x0010)

/* The function will put the four bytes magic 
 * and four bytes data into a cycle temp buffer.
 */
extern void bt_print(unsigned int magic, unsigned int data);
extern signed int print_hex(unsigned int magic, const void* data, unsigned int size);
#endif

